mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Add GUC log_lock_waits to log long wait times.
Simon Riggs
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.377 2007/02/23 21:36:18 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.378 2007/03/03 18:46:40 momjian Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@@ -811,6 +811,14 @@ static struct config_bool ConfigureNamesBool[] =
|
||||
},
|
||||
#endif
|
||||
|
||||
{
|
||||
{"log_lock_waits", PGC_SIGHUP, LOGGING_WHAT,
|
||||
gettext_noop("Logs long lock wait events."),
|
||||
NULL
|
||||
},
|
||||
&log_lock_waits,
|
||||
false, NULL, NULL
|
||||
},
|
||||
{
|
||||
{"log_hostname", PGC_SIGHUP, LOGGING_WHAT,
|
||||
gettext_noop("Logs the host name in the connection logs."),
|
||||
|
@@ -340,7 +340,7 @@
|
||||
# e.g. '<%u%%%d> '
|
||||
#log_statement = 'none' # none, ddl, mod, all
|
||||
#log_hostname = off
|
||||
|
||||
#log_lock_waits = off # Log lock waits longer than deadlock_timeout
|
||||
#log_temp_files = -1 # Log temporary files equal or larger
|
||||
# than the specified number of kilobytes.
|
||||
# -1 disables; 0 logs all temp files
|
||||
|
Reference in New Issue
Block a user