Make "log_temp_files" super-user set only, like other logging options.
authorBruce Momjian <bruce@momjian.us>
Fri, 22 Aug 2008 18:47:07 +0000 (18:47 +0000)
committerBruce Momjian <bruce@momjian.us>
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 4d8d1aea9a9e81f4e9f64ed63d3021d5752bec0b..0f9b33c0579832bcb00cd3295dfa386fc157ea5b 100644 (file)
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.186 2008/08/19 18:30:04 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.187 2008/08/22 18:47:07 momjian Exp $ -->
 
 <chapter Id="runtime-config">
   <title>Server Configuration</title>
@@ -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 dea354187e499a9e824aa329640cc4dc434a2ddd..2c6e4b61e9d0355e01e919d51c08e4acc992eee2 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * 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