Re: [PATCH] Fix LISTEN startup race with direct advancement

Arseniy Mukhin <arseniy.mukhin.dev@gmail.com>

From: Arseniy Mukhin <arseniy.mukhin.dev@gmail.com>
To: Joel Jacobson <joel@compiler.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-05-20T17:27:51Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix NOTIFY wakeups for pre-commit LISTEN entries.

On Wed, May 20, 2026 at 2:20 PM Joel Jacobson <joel@compiler.org> wrote:
>
> On Wed, May 20, 2026, at 04:01, Arseniy Mukhin wrote:
> > One point - looks like the 0003 contains the same test as 0001.
>
> They are similar, but if you look carefully you'll see that they use
> different injection points:
>
> 0001 uses async-notify-before-listen-commit
> 0002 uses async-notify-after-listen-commit
>

Yes, but I meant 0001 and 0003.  There are two specs:
  - async-notify-listen-startup.spec (added in 0001)
  - async-notify-listen-race.spec (added in 0003)
Looks identical, unless I missed something.


Best regards,
Arseniy Mukhin