Make "log_temp_files" super-user set only, like other logging options.
authorBruce Momjian <[email protected]>
Fri, 22 Aug 2008 18:47:07 +0000 (18:47 +0000)
committerBruce Momjian <[email protected]>
Fri, 22 Aug 2008 18:47:07 +0000 (18:47 +0000)
Simon Riggs

doc/src/sgml/config.sgml
src/backend/utils/misc/guc.c

index ea4250332d08c643574e18e7ca87c7c28cf39249..bd14199e2471b3f392b8c4a0c253b9857f0a3985 100644 (file)
@@ -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 <literal>-1</>, which disables this logging.
+        Only superusers can change this setting.
        </para>
       </listitem>
      </varlistentry>
index 7c3fa6de789d00839cb375c2a7ad1fe89d976ef5..63969c1392d9f5cd759f3184e3b19ae497bc46a5 100644 (file)
@@ -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