From: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> |
---|---|
To: | Yuki Seino <seinoyu(at)oss(dot)nttdata(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Add “FOR UPDATE NOWAIT” lock details to the log. |
Date: | 2025-02-12 11:32:11 |
Message-ID: | 8ce2f52f-baac-45f5-9959-ab3797e2bfae@oss.nttdata.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2025/02/03 21:30, Yuki Seino wrote:
> Thank you for your comment. Sorry for being late.
>
>
>> SELECT FOR UPDATE SKIP LOCKED might skip a large number of rows, leading to
>> a high volume of log messages from log_lock_failure in your current patch.
>> Could this be considered unintended behavior? Would it be better to limit
>> the number of log messages per query?
> It is necessary to suppress the generation of a large amount of logs due to SKIP LOCKED.
> But I think that when using SKIP LOCKED, the locks are often intentionally bypassed.
> It seems unnatural to log only the first write or to set a specific number of samples.
I don't think so. Some users of SKIP LOCKED may want to understand why locks
were skipped and identify the blockers. Even partial information could still
be valuable to them, I think.
> What do you think if we simply don't log anything for SKIP LOCKED?
Implementing both NOWAIT and SKIP LOCKED could take time and make the patch
more complex. I'm fine with focusing on the NOWAIT case first as an initial patch.
Regards,
--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2025-02-12 11:52:47 | Re: Fix assert failure when decoding XLOG_PARAMETER_CHANGE on primary |
Previous Message | Rushabh Lathia | 2025-02-12 11:22:36 | Re: Support NOT VALID / VALIDATE constraint options for named NOT NULL constraints |