@@ -1585,52 +1585,52 @@ CREATE TABLE sch2.tbl1_part1 PARTITION OF sch1.tbl1 FOR VALUES FROM (1) to (10);
15851585-- Schema publication that does not include the schema that has the parent table
15861586CREATE PUBLICATION pub FOR ALL TABLES IN SCHEMA sch2 WITH (PUBLISH_VIA_PARTITION_ROOT=1);
15871587SELECT * FROM pg_publication_tables;
1588- pubname | schemaname | tablename
1589- ---------+------------+------------
1590- pub | sch2 | tbl1_part1
1588+ pubname | schemaname | tablename | attnames | rowfilter
1589+ ---------+------------+------------+----------+-----------
1590+ pub | sch2 | tbl1_part1 | {a} |
15911591(1 row)
15921592
15931593DROP PUBLICATION pub;
15941594-- Table publication that does not include the parent table
15951595CREATE PUBLICATION pub FOR TABLE sch2.tbl1_part1 WITH (PUBLISH_VIA_PARTITION_ROOT=1);
15961596SELECT * FROM pg_publication_tables;
1597- pubname | schemaname | tablename
1598- ---------+------------+------------
1599- pub | sch2 | tbl1_part1
1597+ pubname | schemaname | tablename | attnames | rowfilter
1598+ ---------+------------+------------+----------+-----------
1599+ pub | sch2 | tbl1_part1 | {a} |
16001600(1 row)
16011601
16021602-- Table publication that includes both the parent table and the child table
16031603ALTER PUBLICATION pub ADD TABLE sch1.tbl1;
16041604SELECT * FROM pg_publication_tables;
1605- pubname | schemaname | tablename
1606- ---------+------------+-----------
1607- pub | sch1 | tbl1
1605+ pubname | schemaname | tablename | attnames | rowfilter
1606+ ---------+------------+-----------+----------+-----------
1607+ pub | sch1 | tbl1 | {a} |
16081608(1 row)
16091609
16101610DROP PUBLICATION pub;
16111611-- Schema publication that does not include the schema that has the parent table
16121612CREATE PUBLICATION pub FOR ALL TABLES IN SCHEMA sch2 WITH (PUBLISH_VIA_PARTITION_ROOT=0);
16131613SELECT * FROM pg_publication_tables;
1614- pubname | schemaname | tablename
1615- ---------+------------+------------
1616- pub | sch2 | tbl1_part1
1614+ pubname | schemaname | tablename | attnames | rowfilter
1615+ ---------+------------+------------+----------+-----------
1616+ pub | sch2 | tbl1_part1 | {a} |
16171617(1 row)
16181618
16191619DROP PUBLICATION pub;
16201620-- Table publication that does not include the parent table
16211621CREATE PUBLICATION pub FOR TABLE sch2.tbl1_part1 WITH (PUBLISH_VIA_PARTITION_ROOT=0);
16221622SELECT * FROM pg_publication_tables;
1623- pubname | schemaname | tablename
1624- ---------+------------+------------
1625- pub | sch2 | tbl1_part1
1623+ pubname | schemaname | tablename | attnames | rowfilter
1624+ ---------+------------+------------+----------+-----------
1625+ pub | sch2 | tbl1_part1 | {a} |
16261626(1 row)
16271627
16281628-- Table publication that includes both the parent table and the child table
16291629ALTER PUBLICATION pub ADD TABLE sch1.tbl1;
16301630SELECT * FROM pg_publication_tables;
1631- pubname | schemaname | tablename
1632- ---------+------------+------------
1633- pub | sch2 | tbl1_part1
1631+ pubname | schemaname | tablename | attnames | rowfilter
1632+ ---------+------------+------------+----------+-----------
1633+ pub | sch2 | tbl1_part1 | {a} |
16341634(1 row)
16351635
16361636DROP PUBLICATION pub;
@@ -1643,9 +1643,9 @@ CREATE TABLE sch1.tbl1_part3 (a int) PARTITION BY RANGE(a);
16431643ALTER TABLE sch1.tbl1 ATTACH PARTITION sch1.tbl1_part3 FOR VALUES FROM (20) to (30);
16441644CREATE PUBLICATION pub FOR ALL TABLES IN SCHEMA sch1 WITH (PUBLISH_VIA_PARTITION_ROOT=1);
16451645SELECT * FROM pg_publication_tables;
1646- pubname | schemaname | tablename
1647- ---------+------------+-----------
1648- pub | sch1 | tbl1
1646+ pubname | schemaname | tablename | attnames | rowfilter
1647+ ---------+------------+-----------+----------+-----------
1648+ pub | sch1 | tbl1 | {a} |
16491649(1 row)
16501650
16511651RESET client_min_messages;
0 commit comments