Accept some more regression diffs in inherit.out
authorPavan Deolasee <[email protected]>
Wed, 22 Aug 2018 06:15:42 +0000 (11:45 +0530)
committerPavan Deolasee <[email protected]>
Wed, 22 Aug 2018 06:15:42 +0000 (11:45 +0530)
We changed one test case to use HASH distribution so that a primary key can be
defined. Another diff turned out to be a change from the upstream.

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

index b3389c224f800f71b661b98310fb84dfd1893949..c2ac0a52869d7ea6f4fd7f962f32917bebc1c7d8 100644 (file)
@@ -761,7 +761,8 @@ SELECT * from ONLY d ORDER BY d.aa;
 (0 rows)
 
 -- Confirm PRIMARY KEY adds NOT NULL constraint to child table
-CREATE TEMP TABLE z (b TEXT, PRIMARY KEY(aa, b)) inherits (a);
+CREATE TEMP TABLE z1 (aa TEXT) DISTRIBUTE BY HASH(aa);
+CREATE TEMP TABLE z (b TEXT, PRIMARY KEY(aa, b)) inherits (z1);
 INSERT INTO z VALUES (NULL, 'text'); -- should fail
 ERROR:  null value in column "aa" violates not-null constraint
 DETAIL:  Failing row contains (null, text).
@@ -1802,13 +1803,15 @@ SELECT 42, 42, hundred FROM tenk1
 ORDER BY thousand, tenthous;
                                QUERY PLAN                               
 ------------------------------------------------------------------------
- Remote Subquery Scan on all
-   ->  Sort
-         Sort Key: tenk1.thousand, tenk1.tenthous
-         ->  Append
-               ->  Index Only Scan using tenk1_thous_tenthous on tenk1
+ Merge Append
+   Sort Key: tenk1.thousand, tenk1.tenthous
+   ->  Remote Subquery Scan on all
+         ->  Index Only Scan using tenk1_thous_tenthous on tenk1
+   ->  Remote Subquery Scan on all
+         ->  Sort
+               Sort Key: 42, 42
                ->  Index Only Scan using tenk1_hundred on tenk1 tenk1_1
-(6 rows)
+(8 rows)
 
 explain (costs off, num_nodes off, nodes off)
 SELECT thousand, tenthous FROM tenk1
index 6eaa7a50393919ad595eabb2304da63ad5dadadb..6467aaf002c0c83dad71f470cff975b764ecbcab 100644 (file)
@@ -156,7 +156,8 @@ SELECT * FROM ONLY c ORDER BY c.aa;
 SELECT * from ONLY d ORDER BY d.aa;
 
 -- Confirm PRIMARY KEY adds NOT NULL constraint to child table
-CREATE TEMP TABLE z (b TEXT, PRIMARY KEY(aa, b)) inherits (a);
+CREATE TEMP TABLE z1 (aa TEXT) DISTRIBUTE BY HASH(aa);
+CREATE TEMP TABLE z (b TEXT, PRIMARY KEY(aa, b)) inherits (z1);
 INSERT INTO z VALUES (NULL, 'text'); -- should fail
 
 -- Check UPDATE with inherited target and an inherited source table