Revert "Remove nodeid and groupid output in a test"

This reverts commit cb7c57562e1359b6c57e36328699e38f1b463f7a.
pull/7918/head
Cédric Villemain 2025-03-28 14:02:37 +01:00
parent 6e4d3bdf47
commit 16d401b187
2 changed files with 6 additions and 6 deletions

View File

@ -24,12 +24,12 @@ INSERT INTO dest_table (a, b) VALUES (2, 1);
INSERT INTO source_table (a, b) VALUES (1, 5);
INSERT INTO source_table (a, b) VALUES (10, 10);
-- simulate actually having secondary nodes
SELECT nodename, nodeport, noderack, isactive, noderole, nodecluster FROM pg_dist_node ORDER BY 1, 2;
nodename | nodeport | noderack | isactive | noderole | nodecluster
SELECT nodeid, groupid, nodename, nodeport, noderack, isactive, noderole, nodecluster FROM pg_dist_node ORDER BY 1, 2;
nodeid | groupid | nodename | nodeport | noderack | isactive | noderole | nodecluster
---------------------------------------------------------------------
localhost | 57636 | default | t | primary | default
localhost | 57637 | default | t | primary | default
localhost | 57638 | default | t | primary | default
1 | 0 | localhost | 57636 | default | t | primary | default
2 | 1 | localhost | 57637 | default | t | primary | default
3 | 2 | localhost | 57638 | default | t | primary | default
(3 rows)
UPDATE pg_dist_node SET noderole = 'secondary';

View File

@ -20,7 +20,7 @@ INSERT INTO source_table (a, b) VALUES (1, 5);
INSERT INTO source_table (a, b) VALUES (10, 10);
-- simulate actually having secondary nodes
SELECT nodename, nodeport, noderack, isactive, noderole, nodecluster FROM pg_dist_node ORDER BY 1, 2;
SELECT nodeid, groupid, nodename, nodeport, noderack, isactive, noderole, nodecluster FROM pg_dist_node ORDER BY 1, 2;
UPDATE pg_dist_node SET noderole = 'secondary';
\c "dbname=regression options='-c\ citus.use_secondary_nodes=always'"