RE: Added schema level support for publication.
Zhijie Hou (Fujitsu) <houzj.fnst@fujitsu.com>
From: "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>
To: vignesh C <vignesh21@gmail.com>, Rahila Syed <rahilasyed90@gmail.com>
Cc: Greg Nancarrow <gregn4422@gmail.com>, "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>, Ajin Cherian <itsajin@gmail.com>, PostgreSQL
Hackers <pgsql-hackers@lists.postgresql.org>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Date: 2021-07-22T00:51:59Z
Lists: pgsql-hackers
On, July 22, 2021 1:38 AM vignesh C <vignesh21@gmail.com> wrote: >On Wed, Jul 21, 2021 at 3:14 PM Rahila Syed <mailto:rahilasyed90@gmail.com> wrote: >> More broadly, I am not clear about the behaviour of the patch when a >> publication is created to publish only certain tables, and is later altered to publish >> a whole schema. I think such behaviour is legitimate. However, >> AFAIU as per current code we can't update the publication type >> from PUBTYPE_TABLE to PUBTYPE_SCHEMA. > I initially thought this might not be required for users, I have not made any > change for this, I will try to get a few more people's opinion on this and then fix it if required. Currently, It's not allowed to ALTER a FOR TABLE PUBLICATION to a FOR ALL TABLES PUBLICATION. So, I am not sure it's legitimate to ALTER a FOR TABLE PUBLICATION to a FOR SCHEMA PUBLICATION. Personally, It sounds more like a separate feature which can be discussed in a separate thread. Best regards, houzj
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