Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ddb739

Browse files
committed
Make "log_temp_files" super-user set only, like other logging options.
Simon Riggs
1 parent6152de9 commit8ddb739

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.186 2008/08/19 18:30:04 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.187 2008/08/22 18:47:07 momjian Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -3175,6 +3175,7 @@ local0.* /var/log/postgresql
31753175
values log only files whose size is equal or greater than
31763176
the specified number of kilobytes. The
31773177
default is <literal>-1</>, which disables this logging.
3178+
Only superusers can change this setting.
31783179
</para>
31793180
</listitem>
31803181
</varlistentry>

‎src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.468 2008/08/2200:20:40 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.469 2008/08/2218:47:07 momjian Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -1901,7 +1901,7 @@ static struct config_int ConfigureNamesInt[] =
19011901
},
19021902

19031903
{
1904-
{"log_temp_files",PGC_USERSET,LOGGING_WHAT,
1904+
{"log_temp_files",PGC_SUSET,LOGGING_WHAT,
19051905
gettext_noop("Log the use of temporary files larger than this number of kilobytes."),
19061906
gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."),
19071907
GUC_UNIT_KB

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp