Commit 8ddb739e authored by Bruce Momjian's avatar Bruce Momjian

Make "log_temp_files" super-user set only, like other logging options.

Simon Riggs
parent 6152de97
<!-- $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"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
...@@ -3175,6 +3175,7 @@ local0.* /var/log/postgresql ...@@ -3175,6 +3175,7 @@ local0.* /var/log/postgresql
values log only files whose size is equal or greater than values log only files whose size is equal or greater than
the specified number of kilobytes. The the specified number of kilobytes. The
default is <literal>-1</>, which disables this logging. default is <literal>-1</>, which disables this logging.
Only superusers can change this setting.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
...@@ -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
* $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[] = ...@@ -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("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)."), gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."),
GUC_UNIT_KB GUC_UNIT_KB
......
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