mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Have log_min_duration_statement = 0 always print duration/statement.
Change log line to be "duration: ms query:" Indent multi-line queries with a tab in the server logs.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.162 2003/10/03 19:26:49 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.163 2003/10/08 03:49:38 momjian Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -128,7 +128,7 @@ int log_min_error_statement = PANIC;
|
||||
int log_min_messages = NOTICE;
|
||||
int client_min_messages = NOTICE;
|
||||
|
||||
int log_min_duration_statement = 0;
|
||||
int log_min_duration_statement = -1;
|
||||
|
||||
|
||||
/*
|
||||
@ -1185,10 +1185,10 @@ static struct config_int ConfigureNamesInt[] =
|
||||
{"log_min_duration_statement", PGC_USERLIMIT, LOGGING_WHEN,
|
||||
gettext_noop("minimum execution time in milliseconds above which statements will "
|
||||
"be logged"),
|
||||
gettext_noop("The default is 0 (turning this feature off).")
|
||||
gettext_noop("Zero prints all queries. The default is -1 (turning this feature off).")
|
||||
},
|
||||
&log_min_duration_statement,
|
||||
0, 0, INT_MAX / 1000, NULL, NULL
|
||||
-1, -1, INT_MAX / 1000, NULL, NULL
|
||||
},
|
||||
|
||||
/* End-of-list marker */
|
||||
|
Reference in New Issue
Block a user