You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a small buglet in commit 52e4f0c whereby a tuple acquired
from cache was not released, giving rise to WARNING messages; fix that.
While at it, restructure the code a bit on stylistic grounds.
Author: Hou zj <houzj.fnst@fujitsu.com>
Reported-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/CAHut+PvKTyhTBtYCQsP6Ph7=o-oWRSX+v+PXXLXp81-o2bazig@mail.gmail.com
Copy file name to clipboardExpand all lines: src/test/regress/expected/publication.out
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -588,8 +588,12 @@ UPDATE rf_tbl_abcd_part_pk SET a = 1;
588
588
-- fail - cannot set PUBLISH_VIA_PARTITION_ROOT to false if any row filter is
589
589
-- used for partitioned table
590
590
ALTER PUBLICATION testpub6 SET (PUBLISH_VIA_PARTITION_ROOT=0);
591
-
ERROR: cannot set publish_via_partition_root = false for publication "testpub6"
592
-
DETAIL: The publication contains a WHERE clause for a partitioned table "rf_tbl_abcd_part_pk" which is not allowed when publish_via_partition_root is false.
591
+
ERROR: cannot set parameter "publish_via_partition_root" to false for publication "testpub6"
592
+
DETAIL: The publication contains a WHERE clause for partitioned table "rf_tbl_abcd_part_pk", which is not allowed when "publish_via_partition_root" is false.
593
+
-- remove partitioned table's row filter
594
+
ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_part_pk;
595
+
-- ok - we don't have row filter for partitioned table.
596
+
ALTER PUBLICATION testpub6 SET (PUBLISH_VIA_PARTITION_ROOT=0);
593
597
-- Now change the root filter to use a column "b"
594
598
-- (which is not in the replica identity)
595
599
ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_part_pk_1 WHERE (b > 99);
@@ -951,8 +955,12 @@ UPDATE rf_tbl_abcd_part_pk SET a = 1;
951
955
-- fail - cannot set PUBLISH_VIA_PARTITION_ROOT to false if any column list is
952
956
-- used for partitioned table
953
957
ALTER PUBLICATION testpub6 SET (PUBLISH_VIA_PARTITION_ROOT=0);
954
-
ERROR: cannot set publish_via_partition_root = false for publication "testpub6"
955
-
DETAIL: The publication contains a column list for a partitioned table "rf_tbl_abcd_part_pk" which is not allowed when publish_via_partition_root is false.
958
+
ERROR: cannot set parameter "publish_via_partition_root" to false for publication "testpub6"
959
+
DETAIL: The publication contains a column list for partitioned table "rf_tbl_abcd_part_pk", which is not allowed when "publish_via_partition_root" is false.
960
+
-- remove partitioned table's column list
961
+
ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_part_pk;
962
+
-- ok - we don't have column list for partitioned table.
963
+
ALTER PUBLICATION testpub6 SET (PUBLISH_VIA_PARTITION_ROOT=0);
956
964
-- Now change the root column list to use a column "b"
957
965
-- (which is not in the replica identity)
958
966
ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_part_pk_1 (b);
0 commit comments