On 2026-Nov-26, Anthony Hsu wrote:

> Hi Xuneng,
> 
> Thanks for the review and pointing out the possible race. I attached a new
> v5 patch where I removed the $log_location assignment as you suggested.
> Also added "Reviewed-by: Xuneng Zhou <[email protected]>" to the commit
> message.

Thanks, I have pushed this, with some minor comment rewriting.  One
funny thing is that BufferCleanup was previously called BufferPin, so
the tests were failing in all branches older than 19.  Also the wait
events have been renamed a couple of times.

One thing I'm not really in love with is to have the WaitLatch/
ResetLatch dance directly in ResolveRecoveryConflictWithBufferPin(),
when previously it was neatly encapsulated in ProcWaitForSignal().  I
think (for master only) we should consider adding a timeout parameter to
ProcWaitForSignal(), which would I think make this code a tiny bit neater.

Lastly, I had never heard of this kill_kill thing, and a quick grep will
tell you that 006_logical_decoding.pl learned in 2017 [1] that Windows
doesn't like it, or something.  So we may need a SKIP in this new test,
depending on whether IPC::Run has been fixed in the meantime or not.

[1] https://postgr.es/c/734cb4c2e7de92972c01b6339a3e15ac4bc605dd

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/


Reply via email to