2021-06-01 13:45:32 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-09-12 12:35:27 +00:00
|
|
|
# Tags: no-parallel, no-fasttest
|
|
|
|
# Tag no-fasttest: needs psql
|
2021-06-01 13:45:32 +00:00
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
2021-06-02 08:38:43 +00:00
|
|
|
echo "
|
|
|
|
DROP USER IF EXISTS postgresql_user;
|
|
|
|
CREATE USER postgresql_user HOST IP '127.0.0.1' IDENTIFIED WITH no_password;
|
|
|
|
" | $CLICKHOUSE_CLIENT -n
|
|
|
|
|
|
|
|
psql --host localhost --port ${CLICKHOUSE_PORT_POSTGRESQL} ${CLICKHOUSE_DATABASE} --user postgresql_user -c "SELECT NULL;"
|