On Thu, Dec 03, 2026 at 11:32:20PM +0900, Fujii Masao wrote: > With this change, checkpointer (probably and also bgwriter ?) would acquire > ControlFileLock with LW_EXCLUSIVE mode on every call to > UpdateMinRecoveryPoint() during crash recovery, instead of returning > early after the first call. Could this have a performance impact, > or is it not worth worrying about? > > ISTM that we could avoid this by taking ControlFileLock with LW_SHARED mode > when LocalMinRecoveryPoint is invalid, before proceeding to the existing path: > > Is this worthwhile, or overkill?
I agree that this is worth caring for. UpdateMinRecoveryPoint() has always been written so as it is not a point of contention, so we should about any unnecessary LWLock acquisitions if we can. -- Michael
signature.asc
Description: PGP signature
