mirror of https://github.com/citusdata/citus.git
Revert "Remove nodeid and groupid output in a test"
This reverts commit cb7c57562e1359b6c57e36328699e38f1b463f7a.pull/7918/head
parent
6e4d3bdf47
commit
16d401b187
|
@ -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 (1, 5);
|
||||||
INSERT INTO source_table (a, b) VALUES (10, 10);
|
INSERT INTO source_table (a, b) VALUES (10, 10);
|
||||||
-- simulate actually having secondary nodes
|
-- 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;
|
||||||
nodename | nodeport | noderack | isactive | noderole | nodecluster
|
nodeid | groupid | nodename | nodeport | noderack | isactive | noderole | nodecluster
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
localhost | 57636 | default | t | primary | default
|
1 | 0 | localhost | 57636 | default | t | primary | default
|
||||||
localhost | 57637 | default | t | primary | default
|
2 | 1 | localhost | 57637 | default | t | primary | default
|
||||||
localhost | 57638 | default | t | primary | default
|
3 | 2 | localhost | 57638 | default | t | primary | default
|
||||||
(3 rows)
|
(3 rows)
|
||||||
|
|
||||||
UPDATE pg_dist_node SET noderole = 'secondary';
|
UPDATE pg_dist_node SET noderole = 'secondary';
|
||||||
|
|
|
@ -20,7 +20,7 @@ INSERT INTO source_table (a, b) VALUES (1, 5);
|
||||||
INSERT INTO source_table (a, b) VALUES (10, 10);
|
INSERT INTO source_table (a, b) VALUES (10, 10);
|
||||||
|
|
||||||
-- simulate actually having secondary nodes
|
-- 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';
|
UPDATE pg_dist_node SET noderole = 'secondary';
|
||||||
|
|
||||||
\c "dbname=regression options='-c\ citus.use_secondary_nodes=always'"
|
\c "dbname=regression options='-c\ citus.use_secondary_nodes=always'"
|
||||||
|
|
Loading…
Reference in New Issue