Re: BUG: Former primary node might stuck when started as a standby

Alexander Law <exclusion@gmail.com>

From: Alexander Lakhin <exclusion@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Aleksander Alekseev <aleksander@timescale.com>
Date: 2026-03-02T07:00:00Z
Lists: pgsql-hackers
Dear Kuroda-san,

[ back to -hackers after short off-list discussion ]

20.02.2026 04:00, Alexander Lakhin wrote:
>
> Please look at the attached self-contained script. It works for me (failed
> on iterations 6, 12, 2 right now, on my workstation with Ryzen 7900X) --
> probably you could adjust number of parallel jobs to reproduce it on your
> hardware.
>

As it turned out, v2 patch works as expected, but the test may still fail
when the build is configured without injection points. Maybe this test (
and similar one(s)) should be skipped in this case, not sure...

Best regards,
Alexander



Commits

  1. Fix rare instability in recovery TAP test 004_timeline_switch

  2. Fix rare instability in recovery TAP test 009_twophase