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

Simon Riggs
This commit is contained in:
Bruce Momjian 2008-08-22 18:47:07 +00:00
parent 6152de97d3
commit 8ddb739e9d
2 changed files with 4 additions and 3 deletions

View 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>

View 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