From 548d646e65223318e4ccbfdbb25a003568d4c703 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 1 Sep 2002 23:26:06 +0000 Subject: Add log_duration to GUC/postgresql.conf. Rename debug_print_query to log_statement and rename show_query_stats to show_statement_stats. --- doc/src/sgml/func.sgml | 4 ++-- doc/src/sgml/runtime.sgml | 27 +++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index e954f8e7bf9..ee8cc7d3f60 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -5241,7 +5241,7 @@ select current_setting('DateStyle'); false instead. It is the equivalent to the SQL SET command. For example: -select set_config('show_query_stats','off','f'); +select set_config('show_statement_stats','off','f'); set_config ------------ off diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index fbbe6274dc0..42677b20e14 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -928,7 +928,6 @@ env PGOPTIONS='-c geqo=off' psql - DEBUG_PRINT_QUERY (boolean) DEBUG_PRINT_PARSE (boolean) DEBUG_PRINT_REWRITTEN (boolean) DEBUG_PRINT_PLAN (boolean) @@ -992,6 +991,26 @@ env PGOPTIONS='-c geqo=off' psql + + LOG_STATEMENT (boolean) + + + Prints each query received. + + + + + + LOG_DURATION (boolean) + + + 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. + + + + LOG_TIMESTAMP (boolean) @@ -1003,7 +1022,7 @@ env PGOPTIONS='-c geqo=off' psql - SHOW_QUERY_STATS (boolean) + SHOW_STATEMENT_STATS (boolean) SHOW_PARSER_STATS (boolean) SHOW_PLANNER_STATS (boolean) SHOW_EXECUTOR_STATS (boolean) @@ -2072,7 +2091,7 @@ dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir' - show_query_stats = on + show_statement_stats = on * -- cgit v1.2.3