Re: Skipping schema changes in publication
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: shveta malik <shveta.malik@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>,
"David G. Johnston" <david.g.johnston@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>, Shlok Kyal <shlok.kyal.oss@gmail.com>, Peter Smith <smithpb2250@gmail.com>,
"Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>, YeXiu <1518981153@qq.com>, Ian Lawrence Barwick <barwick@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-18T07:39:08Z
Lists: pgsql-hackers
On Wed, Feb 18, 2026 at 12:28 PM shveta malik <shveta.malik@gmail.com> wrote: > > On Wed, Feb 18, 2026 at 11:41 AM Amit Kapila <amit.kapila16@gmail.com> wrote: > > > > On Tue, Feb 17, 2026 at 5:08 PM shveta malik <shveta.malik@gmail.com> wrote: > > > > > > A few more: > > > > > > 6) > > > postgres=# CREATE PUBLICATION pub4 for ALL TABLES EXCEPT TABLE (tab1); > > > ERROR: cannot add relation "tab1" to publication > > > DETAIL: This operation is not supported for temporary tables. > > > > > > postgres=# CREATE PUBLICATION pub4 for ALL TABLES EXCEPT TABLE (tab2); > > > ERROR: cannot add relation "tab2" to publication > > > DETAIL: This operation is not supported for unlogged tables. > > > > > > Shall we change the error message here as we are not trying to add > > > relation here. > > > > > > > But aren't these existing messages? As these are not added by this > > patch and equally apply to existing code, so, isn't it better to > > discuss these separately if you think these are not suitable? > > > > I do not have strong opinion here but this is what I originally had in mind: > > 1) 'cannot add relation .. to publication' is confusing when the user > is actually trying to exclude them. > 2) Since these tables are already excluded because of their unlogged > and temporary nature, the error is further misleading. > > Perhaps we shall have: > ERROR: cannot specify relation "tab1" in publication > DETAIL: Unlogged tables are automatically excluded from publication. > Your proposed message for this case sounds good to me. -- With Regards, Amit Kapila.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix miscellaneous issues in EXCEPT publication clause.
- 6b0550c45d13 19 (unreleased) landed
-
Change syntax of EXCEPT TABLE clause in publication commands.
- 5984ea868eee 19 (unreleased) landed
-
Add support for EXCEPT TABLE in ALTER PUBLICATION.
- 493f8c6439cf 19 (unreleased) landed
-
Allow table exclusions in publications via EXCEPT TABLE.
- fd366065e06a 19 (unreleased) landed
-
Add wait_for_subscription_sync for TAP tests.
- 0c20dd33db16 16.0 cited