From 9fd842c4b20d55746d34a96bc6baec7d2242c2cf Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 2 Sep 2002 05:42:54 +0000 Subject: Add GUC variable to print original query to the server logs when there is an error, warning, etc. Gavin Sherry --- doc/src/sgml/runtime.sgml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 42677b20e14..d43461e61b7 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -942,7 +942,6 @@ env PGOPTIONS='-c geqo=off' psql - EXPLAIN_PRETTY_PRINT (boolean) @@ -978,6 +977,28 @@ env PGOPTIONS='-c geqo=off' psql + + LOG_MIN_ERROR_STATEMENT (string) + + + This controls which log messages are accompanied by the original + query which generated the message. All queries matching the setting + or which are of a higher severity than the setting are logged. The + default is ERROR. Valid values are + DEBUG5, DEBUG4, + DEBUG3, DEBUG2, + DEBUG1, INFO, + NOTICE, WARNING + and ERROR. + + + It is recommended you enable LOG_PID as well + so you can more easily match the error statement with the error + message. + + + + LOG_PID (boolean) @@ -1005,8 +1026,8 @@ env PGOPTIONS='-c geqo=off' psql Prints the duration of every completed query. To use this option, - enable LOG_STATEMENT and LOG_PID so you can link the original query - to the duration using the process id. + enable LOG_STATEMENT and LOG_PID so you + can link the original query to the duration using the process id. -- cgit v1.2.3