From: Pavan Deolasee Date: Wed, 20 Jul 2016 07:30:34 +0000 (+0530) Subject: Do not print node names in EXPLAIN output of a query in "rules" test since that X-Git-Tag: XL9_5_R1_2~11 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=917a3d21bb35c2eb32e49c330bb1f5c6d86c626f;p=postgres-xl.git Do not print node names in EXPLAIN output of a query in "rules" test since that may cause non deterministic output --- diff --git a/src/test/regress/expected/rules.out b/src/test/regress/expected/rules.out index 89f8c7a049..f226668b9e 100644 --- a/src/test/regress/expected/rules.out +++ b/src/test/regress/expected/rules.out @@ -3950,7 +3950,7 @@ INSERT INTO hats SELECT * FROM data RETURNING *; ERROR: unrecognized node type: 119 -EXPLAIN (costs off) WITH data(hat_name, hat_color) AS ( +EXPLAIN (nodes off, costs off) WITH data(hat_name, hat_color) AS ( VALUES ('h8', 'green'), ('h9', 'blue'), ('h7', 'forbidden') @@ -3960,14 +3960,14 @@ INSERT INTO hats RETURNING *; QUERY PLAN ------------------------------------------------------------------------------------------------------- - Remote Subquery Scan on all (datanode_1,datanode_2) + Remote Subquery Scan on all -> Insert on hat_data Conflict Resolution: UPDATE Conflict Arbiter Indexes: hat_data_unique_idx Conflict Filter: ((excluded.hat_color <> 'forbidden'::bpchar) AND (hat_data.* <> excluded.*)) CTE data -> Values Scan on "*VALUES*" - -> Remote Subquery Scan on all (datanode_1) + -> Remote Subquery Scan on all Distribute results by H: hat_name -> CTE Scan on data (10 rows) diff --git a/src/test/regress/sql/rules.sql b/src/test/regress/sql/rules.sql index a602cd9237..e1da6e84f4 100644 --- a/src/test/regress/sql/rules.sql +++ b/src/test/regress/sql/rules.sql @@ -1131,7 +1131,7 @@ WITH data(hat_name, hat_color) AS ( INSERT INTO hats SELECT * FROM data RETURNING *; -EXPLAIN (costs off) WITH data(hat_name, hat_color) AS ( +EXPLAIN (nodes off, costs off) WITH data(hat_name, hat_color) AS ( VALUES ('h8', 'green'), ('h9', 'blue'), ('h7', 'forbidden')