From: Bruce Momjian Date: Fri, 22 Aug 2008 18:47:07 +0000 (+0000) Subject: Make "log_temp_files" super-user set only, like other logging options. X-Git-Tag: REL8_4_BETA1~1052 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ddb739e9d937e83b53176c27697ea0e82974451;p=thirdparty%2Fpostgresql.git Make "log_temp_files" super-user set only, like other logging options. Simon Riggs --- diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 4d8d1aea9a9..0f9b33c0579 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -3175,6 +3175,7 @@ local0.* /var/log/postgresql values log only files whose size is equal or greater than the specified number of kilobytes. The default is -1, which disables this logging. + Only superusers can change this setting. diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index dea354187e4..2c6e4b61e9d 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut . * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.468 2008/08/22 00:20:40 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.469 2008/08/22 18:47:07 momjian Exp $ * *-------------------------------------------------------------------- */ @@ -1901,7 +1901,7 @@ static struct config_int ConfigureNamesInt[] = }, { - {"log_temp_files", PGC_USERSET, LOGGING_WHAT, + {"log_temp_files", PGC_SUSET, LOGGING_WHAT, gettext_noop("Log the use of temporary files larger than this number of kilobytes."), gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."), GUC_UNIT_KB