> On 27 Nov 2026, at 17:27, Álvaro Herrera <[email protected]> wrote: > > Is this patch sufficient? I suspect not ... If not, I'm > inclined to wrap the whole test in a SKIP block until a complete fix is > developed. > > (There's also a 50_000 us timeout which is likely insufficient in slow > machines ...)
I think the main problem is relying on a sleep for synchronization. On tamandua [0], the COPY backend itself was canceled before the second cursor opened. What about using an injection point? The attached patch for master pauses the first reader when it receives the conflict signal, while it still holds the pin. Only then does the second reader connect. If it gets a buffer pin conflict, startup must have sent the signal again. With the old wait restored, the test fails at that check. With the fix it passes locally with forced parallelism and beetle's log prefix. PG15 and PG16 lack injection points. I'd be fine with leaving this test case disabled there... Thanks! Best regards, Andrey Borodin. [0] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tamandua&dt=2026-11-27%2011%3A42%3A56
0001-Synchronize-the-standby-buffer-pin-conflict-test.patch
Description: Binary data
