Add setting to config

This commit is contained in:
kssenii 2021-04-07 14:02:54 +00:00
parent 15ae912b56
commit 3420cf9142
2 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@
<!-- Compatibility with PostgreSQL protocol.
ClickHouse will pretend to be PostgreSQL for applications connecting to this port.
-->
<!-- <postgresql_port>9005</postgresql_port> -->
<postgresql_port>9005</postgresql_port>
<!-- HTTP API with TLS (HTTPS).
You have to configure certificate to enable this interface.

View File

@ -25,7 +25,7 @@ CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_poli
SELECT 'after row policy with no password';
" | $CLICKHOUSE_CLIENT -n
psql --host localhost --port 5433 default --user postgresql_protocol_user -c "SELECT * FROM postgresql_protocol_with_row_policy;"
psql --host localhost --port 9005 default --user postgresql_protocol_user -c "SELECT * FROM postgresql_protocol_with_row_policy;"
echo "
DROP USER IF EXISTS postgresql_protocol_user;
@ -37,5 +37,5 @@ CREATE ROW POLICY IF NOT EXISTS test_policy ON postgresql_protocol_with_row_poli
SELECT 'after row policy with plaintext_password';
" | $CLICKHOUSE_CLIENT -n
psql "postgresql://postgresql_protocol_user:qwerty@localhost:5433/default" -c "SELECT * FROM postgresql_protocol_with_row_policy;"
psql "postgresql://postgresql_protocol_user:qwerty@localhost:9005/default" -c "SELECT * FROM postgresql_protocol_with_row_policy;"