Re: Added schema level support for publication.
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>, Greg Nancarrow <gregn4422@gmail.com>, "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>, "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Peter Smith <smithpb2250@gmail.com>, Ajin Cherian <itsajin@gmail.com>, Rahila Syed <rahilasyed90@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Date: 2021-11-01T06:06:37Z
Lists: pgsql-hackers
On Fri, Oct 29, 2021 at 1:35 PM Amit Kapila <amit.kapila16@gmail.com> wrote: > > On Thu, Oct 28, 2021 at 9:55 AM vignesh C <vignesh21@gmail.com> wrote: > > > > Thanks for committing the patch, please find the remaining patches attached. > > Thanks Hou Zhijie and Greg Nancarrow for sharing a few comments > > offline, I have fixed those in the attached patch. > > > > Pushed the first test case patch. About > v48-0002-Add-new-pg_publication_objects-view-to-display-T, I think it > doesn't display anything for "for all tables" publication. Instead of > selecting from pg_publication_rel, you can use the existing view > pg_publication_tables to solve that problem. > > Having said that, I am not completely sure about the value of this new > view pg_publication_objects which displays all objects of > publications. I see that users might want to see all the objects that > the publication publishes and when we include other objects like > sequences it might be more helpful. > > Sawada-San, others, what do you think? Is it really useful to have such a view? I haven't followed the discussion on pg_publication_objects view but what is the primary use case of this view? If it's to list all tables published in a publication (e.g, "select * from pg_publication_objects where pubname = 'pub1'), pg_publication_objects view lacks the information of FOR ALL TABLES publications. And probably we can use pg_publication_tables instead. On the other hand, if it's to list all tables published in FOR ALL TABLES IN SCHEMA publications (e.g., "select * from pg_publication_object where objtype = 'schema'), the view doesn't show tables published in such publications. Regards, -- Masahiko Sawada EDB: https://www.enterprisedb.com/
Commits
-
Include schema/table publications even with exclude options in dump.
- 4aa6fa3cd0a2 18.0 landed
-
Rename some enums to use TABLE instead of REL.
- b3812d0b9bcf 15.0 landed
-
Add tap tests for the schema publications.
- 6b0f6f79eef2 15.0 landed
-
Allow publishing the tables of schema.
- 5a2832465fd8 15.0 landed
-
In pg_dump, use simplehash.h to look up dumpable objects by OID.
- 92316a4582a5 15.0 cited