Accept warnings about inheriting distribution from parent
authorTomas Vondra <[email protected]>
Sun, 8 Oct 2017 18:36:35 +0000 (20:36 +0200)
committerTomas Vondra <[email protected]>
Sun, 8 Oct 2017 18:36:35 +0000 (20:36 +0200)
Commit e26a0e07d8 started ignoring distributions defined on partitions,
but omitted this place in 'rules' when accepting the warnings.

src/test/regress/expected/rules.out

index 8cc84adc8bc401e85bafe627728b8eef975cf77f..7a273e3cbf0a2928530d64742721b7d2febef881 100644 (file)
@@ -2656,7 +2656,11 @@ NOTICE:  drop cascades to 4 other objects
 --
 create temp table t1 (a integer primary key) distribute by replication;
 create temp table t1_1 (check (a >= 0 and a < 10)) inherits (t1) distribute by replication;
+WARNING:  Inherited/partition tables inherit distribution from the parent
+DETAIL:  Explicitly specified distribution will be ignored
 create temp table t1_2 (check (a >= 10 and a < 20)) inherits (t1) distribute by replication;
+WARNING:  Inherited/partition tables inherit distribution from the parent
+DETAIL:  Explicitly specified distribution will be ignored
 create rule t1_ins_1 as on insert to t1
        where new.a >= 0 and new.a < 10
        do instead