mirror of https://github.com/citusdata/citus.git
Add extra debug info
parent
41bd464b03
commit
7b1c35280f
|
@ -78,9 +78,19 @@ SELECT format('user=%s host=localhost port=%s password=%s dbname=regression',
|
||||||
\gset
|
\gset
|
||||||
GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier TO alice, bob;
|
GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier TO alice, bob;
|
||||||
\c :alice_conninfo
|
\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)
|
-- router query (should break because of bad password)
|
||||||
INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment');
|
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"
|
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 ...
|
-- fix alice's worker1 password ...
|
||||||
UPDATE pg_dist_authinfo
|
UPDATE pg_dist_authinfo
|
||||||
SET authinfo = ('password=' || :'alice_worker_1_pw')
|
SET authinfo = ('password=' || :'alice_worker_1_pw')
|
||||||
|
|
|
@ -76,8 +76,11 @@ GRANT ALL ON TABLE lineitem, orders, lineitem, customer, nation, part, supplier
|
||||||
|
|
||||||
\c :alice_conninfo
|
\c :alice_conninfo
|
||||||
|
|
||||||
|
SELECT current_user;
|
||||||
|
SET citus.log_remote_commands TO on;
|
||||||
-- router query (should break because of bad password)
|
-- router query (should break because of bad password)
|
||||||
INSERT INTO customer VALUES (12345, 'name', NULL, 5, 'phone', 123.45, 'segment', 'comment');
|
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 ...
|
-- fix alice's worker1 password ...
|
||||||
UPDATE pg_dist_authinfo
|
UPDATE pg_dist_authinfo
|
||||||
|
|
Loading…
Reference in New Issue