Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
Cc: Anthony Hsu <erwaman(at)gmail(dot)com>, Xuneng Zhou <xunengzhou(at)gmail(dot)com>, João Rito <joaovictor(dot)rito(at)gmail(dot)com>, shihao zhong <zhong950419(at)gmail(dot)com>, Dmytro Astapov <dastapov(at)gmail(dot)com>, pgsql-hackers mailing list <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: Set 1s WaitLatch timeout if standby limit has expired in ResolveRecoveryConflictWithBufferPin
Date: 2026-11-27 13:25:29
Message-ID: 2B6E1962-DB90-4D72-9CED-DCF81265D7F4@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 27 Nov 2026, at 17:27, Álvaro Herrera <alvherre(at)kurilemu(dot)de> wrote:
>
> Is this patch sufficient?

I reproduced the parallel-worker failure locally on macOS laptop with
PG_TEST_SERVER_POSTGRES_OPTS=debug_parallel_query=regress. Your change
makes the test pass in several consecutive runs.

With log_line_prefix='[%p:%l]', it still times out looking for the
cancellation message. The second backend is actually canceled and
replay catches up, but the message has [66903:8] where the test expects
[66903]. Perhaps, we can consider this an animal configuration problem.

I haven't tested Windows...

Thank you!

Best regards, Andrey Borodin.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Sharpe 2026-11-27 13:41:04 VACUUM FULL / REPACK on the primary make hot standby queries miss rows (2012 report, still unfixed)
Previous Message Osama Abdul Qader 2026-11-27 13:14:30 Re: pg_rewind reports "no rewind required" due to stale minRecoveryPoint