Re: Add “FOR UPDATE NOWAIT” lock details to the log.
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Yuki Seino <seinoyu@oss.nttdata.com>,
Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-03-11T13:24:25Z
Lists: pgsql-hackers
Attachments
- v10-0001-Add-GUC-option-to-log-lock-acquisition-failures.patch (text/plain) patch v10-0001
On 2025/03/11 16:50, Yuki Seino wrote: >> >> Instead, wouldn't it be simpler to update LockAcquireExtended() to >> take a new argument, like logLockFailure, to control whether >> a lock failure should be logged directly? I’ve adjusted the patch >> accordingly and attached it. Please let me know what you think! >> >> Regards, > Thank you! > > It's very simple and nice. > It seems like it can also handle other lock failure cases by extending logLockFailure. > > I agree with this propose. Thanks for reviewing the patch! I've made some minor cosmetic adjustments. The updated patch is attached. Unless there are any objections, I'll proceed with committing it. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
Commits
-
Rename log_lock_failure GUC to log_lock_failures for consistency.
- 73bdcfab35ec 18.0 landed
-
Add GUC option to log lock acquisition failures.
- 6d376c3b0d1e 18.0 landed
-
Split ProcSleep function into JoinWaitQueue and ProcSleep
- 3c0fd64fec8e 18.0 cited