Re: Add “FOR UPDATE NOWAIT” lock details to the log.

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Fujii Masao <masao.fujii@oss.nttdata.com>, Yuki Seino <seinoyu@oss.nttdata.com>, Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-06-02T05:42:07Z
Lists: pgsql-hackers
On 30.05.25 18:12, Fujii Masao wrote:
> On 2025/05/31 0:28, Fujii Masao wrote:
>>>   Otherwise, maybe "log_lock_failures" would be better.
>>
>> Yes, this seems better for consistency with log_lock_waits.
> 
> Patch attached.

This looks good to me.




Commits

  1. Rename log_lock_failure GUC to log_lock_failures for consistency.

  2. Add GUC option to log lock acquisition failures.

  3. Split ProcSleep function into JoinWaitQueue and ProcSleep