mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +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:
@@ -566,7 +566,7 @@
|
||||
{ name => 'log_lock_waits', type => 'bool', context => 'PGC_SUSET', group => 'LOGGING_WHAT',
|
||||
short_desc => 'Logs long lock waits.',
|
||||
variable => 'log_lock_waits',
|
||||
boot_val => 'false',
|
||||
boot_val => 'true',
|
||||
},
|
||||
|
||||
{ name => 'log_lock_failures', type => 'bool', context => 'PGC_SUSET', group => 'LOGGING_WHAT',
|
||||
|
||||
@@ -624,7 +624,7 @@
|
||||
# processes
|
||||
# %% = '%'
|
||||
# e.g. '<%u%%%d> '
|
||||
#log_lock_waits = off # log lock waits >= deadlock_timeout
|
||||
#log_lock_waits = on # log lock waits >= deadlock_timeout
|
||||
#log_lock_failures = off # log lock failures
|
||||
#log_recovery_conflict_waits = off # log standby recovery conflict waits
|
||||
# >= deadlock_timeout
|
||||
|
||||
Reference in New Issue
Block a user