From: Chao Li <li.evan.chao@gmail.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Collect ALTER PUBLICATION commands for event triggers
Date: Fri, 24 Jul 2026 22:12:07 +0800
Message-ID: <CF1792EC-83F7-4C4A-8692-A813B75F5466@gmail.com> (raw)
In-Reply-To: <CAHGQGwGB7Kg3yVavK3wqqmPdwdr7SvEttOTUKU_aS_e0kQPh5g@mail.gmail.com>
References: <CAHGQGwH-wWO=0406dbSiPvxNMhc-6TQK7ORZ_+9SyaR5fDsvyg@mail.gmail.com>
<B2B24887-00C6-4A4D-97E0-89529D476D47@gmail.com>
<CAHGQGwGB7Kg3yVavK3wqqmPdwdr7SvEttOTUKU_aS_e0kQPh5g@mail.gmail.com>
> On Jul 24, 2026, at 21:54, Fujii Masao <masao.fujii@gmail.com> wrote:
>
> On Fri, Jul 24, 2026 at 5:38 PM Chao Li <li.evan.chao@gmail.com> wrote:
>> Both v1-0001 and v1-0002 look good to me.
>
> Thanks for the review!
>
>
>> While reviewing 0002, I noticed another suspicion. AlterPublicationAllFlags() directly updates the pg_publication tuple but doesn’t call InvokeObjectPostAlterHook(). This seems inconsistent with AlterPublicationOptions() and AlterPublicationOwner_internal(), which invoke that hook after altering the publication.
>>
>> As this is a separate issue from this patch, should I start a new thread? This seems an oversight of 493f8c6439c.
>
> Good catch! Although it's a separate issue, I think it's fine to
> discuss it here since it's a bit related and a small change.
>
> I put together a patch to invoke the post-alter hook for
> ALTER PUBLICATION SET ALL. It's attached as patch 0003
> in my reply to Ian upthread.
>
Yeah, that’s better. Thanks for adding 0003. I will review it next Monday.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: li.evan.chao@gmail.com, masao.fujii@gmail.com
Subject: Re: Collect ALTER PUBLICATION commands for event triggers
In-Reply-To: <CF1792EC-83F7-4C4A-8692-A813B75F5466@gmail.com>
References: <CAHGQGwH-wWO=0406dbSiPvxNMhc-6TQK7ORZ_+9SyaR5fDsvyg@mail.gmail.com> <B2B24887-00C6-4A4D-97E0-89529D476D47@gmail.com> <CAHGQGwGB7Kg3yVavK3wqqmPdwdr7SvEttOTUKU_aS_e0kQPh5g@mail.gmail.com> <CF1792EC-83F7-4C4A-8692-A813B75F5466@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox