From 7b1c35280f490cdc49872b3ac79975f1e0b88a5b Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Fri, 14 Jun 2024 15:25:41 +0200 Subject: [PATCH] Add extra debug info --- src/test/regress/expected/multi_multiuser_auth.out | 10 ++++++++++ src/test/regress/sql/multi_multiuser_auth.sql | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/test/regress/expected/multi_multiuser_auth.out b/src/test/regress/expected/multi_multiuser_auth.out index 8995fc414..503770c68 100644 --- a/src/test/regress/expected/multi_multiuser_auth.out +++ b/src/test/regress/expected/multi_multiuser_auth.out @@ -78,9 +78,19 @@ SELECT format('user=%s host=localhost port=%s password=%s dbname=regression', \gset GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier TO alice, bob; \c :alice_conninfo +SELECT current_user; + current_user +--------------------------------------------------------------------- + alice +(1 row) + +SET citus.log_remote_commands TO on; -- router query (should break because of bad password) INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment'); +NOTICE: issuing BEGIN TRANSACTION ISOLATION LEVEL READ COMMITTED;SELECT assign_distributed_transaction_id(xx, xx, 'xxxxxxx'); +DETAIL: on server alice@localhost:xxxxx connectionId: xxxxxxx ERROR: connection to the remote node alice@localhost:xxxxx failed with the following error: FATAL: password authentication failed for user "alice" +SET citus.log_remote_commands TO off; -- fix alice's worker1 password ... UPDATE pg_dist_authinfo SET authinfo = ('password=' || :'alice_worker_1_pw') diff --git a/src/test/regress/sql/multi_multiuser_auth.sql b/src/test/regress/sql/multi_multiuser_auth.sql index 9e5dbde50..138ad231e 100644 --- a/src/test/regress/sql/multi_multiuser_auth.sql +++ b/src/test/regress/sql/multi_multiuser_auth.sql @@ -76,8 +76,11 @@ GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier \c :alice_conninfo +SELECT current_user; +SET citus.log_remote_commands TO on; -- router query (should break because of bad password) INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment'); +SET citus.log_remote_commands TO off; -- fix alice's worker1 password ... UPDATE pg_dist_authinfo