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: recoveryinfrav9~708 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a08748002c5c68c2bcae07b1b514d8696071fdd8;p=users%2Fsimon%2Fpostgres.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 ea4250332d..bd14199e24 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -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 7c3fa6de78..63969c1392 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -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