Do not print node names in EXPLAIN output of a query in "rules" test since that
authorPavan Deolasee <[email protected]>
Wed, 20 Jul 2016 07:30:34 +0000 (13:00 +0530)
committerPavan Deolasee <[email protected]>
Wed, 20 Jul 2016 07:30:34 +0000 (13:00 +0530)
may cause non deterministic output

src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql

index 89f8c7a0495da8d7b14bca1fa9c8e941bf88ac3b..f226668b9ea999d2fd546b1c24f054fd87de6e47 100644 (file)
@@ -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)
index a602cd9237988e75f576621958555487a0591362..e1da6e84f436fd6fda05c95c76901a77046dc57c 100644 (file)
@@ -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')