Re: How should we wait for recovery conflict resolution?

2023-04-05 Thread Thomas Munro
On Thu, Apr 6, 2023 at 7:46 AM Thomas Munro wrote: > Initially I was suspicious that there may be tricky races to deal with > around that wakeup logic, and the poll/sleep loop was due to an > inability to come up with something reliable. (Oops lost a sentence) ... but then I realised that we're

How should we wait for recovery conflict resolution?

2023-04-05 Thread Thomas Munro
Hi, Currently the standby reaches ResolveRecoveryConflictWithVirtualXIDs() with a waitlist of VXIDs that are preventing it from making progress. For each one it enters a sleep/poll loop that repeatedly tries to acquire (conditionally) the VXID lock with VirtualXactLock(vxid, wait=false), as a