Re: Collect ALTER PUBLICATION commands for event triggers - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Collect ALTER PUBLICATION commands for event triggers
Date
Msg-id CAHGQGwGB7Kg3yVavK3wqqmPdwdr7SvEttOTUKU_aS_e0kQPh5g@mail.gmail.com
Whole thread
In response to Collect ALTER PUBLICATION commands for event triggers  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: [PATCH v4] Make NumericVar storage semantics explicit
List pgsql-hackers
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
tuplebut 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.

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Allow a condition string in an injection point
Next
From: Andreas Karlsson
Date:
Subject: Re: [DESIGN] Soft DROP TABLE, recoverable drops for PostgreSQL