Commit aea0270c authored by Bruce Momjian's avatar Bruce Momjian

Make log_ GUC settings controllable only by super-users, so non-super

users can't turn it off.
parent 98b6f37e
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>. * Written by Peter Eisentraut <peter_e@gmx.net>.
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.125 2003/05/27 17:49:46 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.126 2003/05/27 17:55:50 momjian Exp $
* *
*-------------------------------------------------------------------- *--------------------------------------------------------------------
*/ */
...@@ -400,11 +400,11 @@ static struct config_bool ...@@ -400,11 +400,11 @@ static struct config_bool
#endif #endif
{ {
{"log_statement", PGC_USERSET}, &log_statement, {"log_statement", PGC_SUSET}, &log_statement,
false, NULL, NULL false, NULL, NULL
}, },
{ {
{"log_duration", PGC_USERSET}, &log_duration, {"log_duration", PGC_SUSET}, &log_duration,
false, NULL, NULL false, NULL, NULL
}, },
{ {
...@@ -425,19 +425,19 @@ static struct config_bool ...@@ -425,19 +425,19 @@ static struct config_bool
}, },
{ {
{"log_parser_stats", PGC_USERSET}, &log_parser_stats, {"log_parser_stats", PGC_SUSET}, &log_parser_stats,
false, NULL, NULL false, NULL, NULL
}, },
{ {
{"log_planner_stats", PGC_USERSET}, &log_planner_stats, {"log_planner_stats", PGC_SUSET}, &log_planner_stats,
false, NULL, NULL false, NULL, NULL
}, },
{ {
{"log_executor_stats", PGC_USERSET}, &log_executor_stats, {"log_executor_stats", PGC_SUSET}, &log_executor_stats,
false, NULL, NULL false, NULL, NULL
}, },
{ {
{"log_statement_stats", PGC_USERSET}, &log_statement_stats, {"log_statement_stats", PGC_SUSET}, &log_statement_stats,
false, NULL, NULL false, NULL, NULL
}, },
#ifdef BTREE_BUILD_STATS #ifdef BTREE_BUILD_STATS
...@@ -791,7 +791,7 @@ static struct config_string ...@@ -791,7 +791,7 @@ static struct config_string
}, },
{ {
{"log_min_error_statement", PGC_USERSET}, &log_min_error_statement_str, {"log_min_error_statement", PGC_SUSET}, &log_min_error_statement_str,
"panic", assign_min_error_statement, NULL "panic", assign_min_error_statement, NULL
}, },
...@@ -878,7 +878,7 @@ static struct config_string ...@@ -878,7 +878,7 @@ static struct config_string
}, },
{ {
{"log_min_messages", PGC_USERSET}, &log_min_messages_str, {"log_min_messages", PGC_SUSET}, &log_min_messages_str,
"notice", assign_log_min_messages, NULL "notice", assign_log_min_messages, NULL
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment