mirror of
https://github.com/postgres/postgres.git
synced 2025-11-18 02:02:55 +03:00
Default to log_lock_waits=on
If someone is stuck behind a lock for more than a second, that is almost always a problem that is worth a log entry. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-By: Michael Banck <mbanck@gmx.net> Reviewed-By: Robert Haas <robertmhaas@gmail.com> Reviewed-By: Christoph Berg <myon@debian.org> Reviewed-By: Stephen Frost <sfrost@snowman.net> Discussion: https://postgr.es/m/b8b8502915e50f44deb111bc0b43a99e2733e117.camel%40cybertec.at
This commit is contained in:
@@ -60,7 +60,7 @@ int LockTimeout = 0;
|
||||
int IdleInTransactionSessionTimeout = 0;
|
||||
int TransactionTimeout = 0;
|
||||
int IdleSessionTimeout = 0;
|
||||
bool log_lock_waits = false;
|
||||
bool log_lock_waits = true;
|
||||
|
||||
/* Pointer to this process's PGPROC struct, if any */
|
||||
PGPROC *MyProc = NULL;
|
||||
|
||||
Reference in New Issue
Block a user