Re: Collect ALTER PUBLICATION commands for event triggers

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Collect ALTER PUBLICATION commands for event triggers
Date: 2026-07-24 14:12:07
Message-ID: CF1792EC-83F7-4C4A-8692-A813B75F5466@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Jul 24, 2026, at 21:54, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Fri, Jul 24, 2026 at 5:38 PM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)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/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ilia Evdokimov 2026-07-24 15:03:11 Re: Extended statistics improvement: multi-column MCV missing values
Previous Message Fujii Masao 2026-07-24 13:59:01 Re: Collect ALTER PUBLICATION commands for event triggers