aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-09-01 23:26:06 +0000
committerBruce Momjian <bruce@momjian.us>2002-09-01 23:26:06 +0000
commit548d646e65223318e4ccbfdbb25a003568d4c703 (patch)
tree481b5e8caa2dab79deca1bb48155e6736a8b323d /src/backend/utils/misc/guc.c
parentf4abdd8212380a81e90e6b5bf340a60dfb3068f2 (diff)
downloadpostgresql-548d646e65223318e4ccbfdbb25a003568d4c703.tar.gz
postgresql-548d646e65223318e4ccbfdbb25a003568d4c703.zip
Add log_duration to GUC/postgresql.conf.
Rename debug_print_query to log_statement and rename show_query_stats to show_statement_stats.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r--src/backend/utils/misc/guc.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 6000493a853..e07421a87cf 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -5,7 +5,7 @@
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.89 2002/08/30 22:18:07 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.90 2002/09/01 23:26:06 momjian Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
@@ -77,7 +77,8 @@ static const char *assign_facility(const char *facility,
#ifdef USE_ASSERT_CHECKING
bool assert_enabled = true;
#endif
-bool Debug_print_query = false;
+bool Log_statement = false;
+bool Log_duration = false;
bool Debug_print_plan = false;
bool Debug_print_parse = false;
bool Debug_print_rewritten = false;
@@ -86,7 +87,7 @@ bool Debug_pretty_print = false;
bool Show_parser_stats = false;
bool Show_planner_stats = false;
bool Show_executor_stats = false;
-bool Show_query_stats = false; /* this is sort of all three above
+bool Show_statement_stats = false; /* this is sort of all three above
* together */
bool Show_btree_build_stats = false;
@@ -362,7 +363,11 @@ static struct config_bool
#endif
{
- { "debug_print_query", PGC_USERSET }, &Debug_print_query,
+ { "log_statement", PGC_USERSET }, &Log_statement,
+ false, NULL, NULL
+ },
+ {
+ { "log_duration", PGC_USERSET }, &Log_duration,
false, NULL, NULL
},
{
@@ -395,7 +400,7 @@ static struct config_bool
false, NULL, NULL
},
{
- { "show_query_stats", PGC_USERSET }, &Show_query_stats,
+ { "show_statement_stats", PGC_USERSET }, &Show_statement_stats,
false, NULL, NULL
},
#ifdef BTREE_BUILD_STATS