Re: In core use of RegisterXactCallback() and RegisterSubXactCallback()

Amit Langote <amitlangote09@gmail.com>

From: Amit Langote <amitlangote09@gmail.com>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2026-06-29T01:26:33Z
Lists: pgsql-hackers
On Fri, Jun 26, 2026 at 1:11 PM Bertrand Drouvot
<bertranddrouvot.pg@gmail.com> wrote:
> On Fri, Jun 26, 2026 at 08:21:50AM +0900, Amit Langote wrote:
> > On Fri, Jun 26, 2026 at 12:05 AM Bertrand Drouvot
> > <bertranddrouvot.pg@gmail.com> wrote:
> > > Just one nit:
> > >
> > > + Assert for development builds and, since
> > > +        * the transaction is already committed by now and FK checks may have been
> > > +        * skipped, also warn in production builds.
> > >
> > > s/development builds/assert-enabled builds/? That looks more common and "
> > > development builds" would be introduced by this patch.
> >
> > I grepped, and while the word "development" isn't rare in the tree,
> > none of the uses are "development builds" as a build type.
>
> Right.
>
> > "assert-enabled" is the established term for that, so I've switched to
> > it in v2.
>
> Thanks! LGTM.

Thanks, pushed.

-- 
Thanks, Amit Langote



Commits

  1. Hardwire RI fast-path end-of-xact cleanup into xact.c