Re: Set log_lock_waits=on by default - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Set log_lock_waits=on by default
Date
Msg-id e754e717e962fe341d777f79d2ebc9b45d49dd65.camel@cybertec.at
Whole thread Raw
In response to Re: Set log_lock_waits=on by default  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers
On Mon, 2025-09-08 at 10:38 +0800, Chao Li wrote:
> I am hesitate to support this change. I agree log_lock_waits is a powerful tool,
> but it’s more like a diagnostic tool. On a high-concurrency system with many tractions
> running at the same time, it may quickly fill up log files and make it difficult
> to find other errors. So, we usually only turn it on when needed, and turn it off
> once debugging is done.

You still can do that - only the default changed.

I think that if your log fills up with messages indicating that sessions are stuck
behind a lock for more than one second, and it is a high concurrency system, you
have got a severe problem that you want to know about.

What I argue is that while log_lock_waits=on is not the correct setting for
everybody, it is the correct setting for the vast majority of databases.

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Zsolt Parragi
Date:
Subject: Re: OAuth client code doesn't work with Google OAuth
Next
From: David Geier
Date:
Subject: Re: Use merge-based matching for MCVs in eqjoinsel