Re: Skipping schema changes in publication
Andrei Lepikhov <lepihov@gmail.com>
From: Andrei Lepikhov <lepihov@gmail.com>
To: shveta malik <shveta.malik@gmail.com>,
Amit Kapila <amit.kapila16@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>, Shlok Kyal <shlok.kyal.oss@gmail.com>,
Ashutosh Sharma <ashu.coek88@gmail.com>,
"David G. Johnston" <david.g.johnston@gmail.com>,
Dilip Kumar <dilipbalaut@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-26T09:38:33Z
Lists: pgsql-hackers
On 26/2/26 05:56, shveta malik wrote: > On Thu, Feb 26, 2026 at 8:26 AM Amit Kapila <amit.kapila16@gmail.com> wrote: >> On Wed, Feb 25, 2026 at 7:09 PM Andrei Lepikhov <lepihov@gmail.com> wrote: > pg_publication_rel will not contain any regular table entries for a > given pubid when EXCEPT is used. Except is for ALL-TABLES pub alone > for which base-table entries are stored in pg_publication_tables. Thus > for an EXCEPT pub, anything we fetch from pg_publication_rel using the > pubid index > would necessarily be an EXCEPT entry. The scenario where we retrieve, > say, 1000 table entries for a pubid and only 1–2 of them are EXCEPT > entries will not occur. Given this, the need for a composite index on > (prpubid, prexcept) does not appear to be strongly justified to me. > Please ignore my comment if you are already aware of this situation. Thanks, I missed the fact that pg_publication_rel doesn't contain records for each table in the ALL-TABLES case. Case solved. -- regards, Andrei Lepikhov, pgEdge
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