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

Commit7f77f2a

Browse files
committed
Doc: improve documentation about postgresql.auto.conf.
Clarify what external tools can do to this file, and add a bitof detail about what ALTER SYSTEM itself does.Discussion:https://postgr.es/m/aed6cc9f-98f3-2693-ac81-52bb0052307e@2ndquadrant.com
1 parent32d38f5 commit7f77f2a

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ shared_buffers = 128MB
137137
identifiers or numbers must be single-quoted. To embed a single
138138
quote in a parameter value, write either two quotes (preferred)
139139
or backslash-quote.
140+
If the file contains multiple entries for the same parameter,
141+
all but the last one are ignored.
140142
</para>
141143

142144
<para>
@@ -169,18 +171,29 @@ shared_buffers = 128MB
169171
In addition to <filename>postgresql.conf</filename>,
170172
a <productname>PostgreSQL</productname> data directory contains a file
171173
<filename>postgresql.auto.conf</filename><indexterm><primary>postgresql.auto.conf</primary></indexterm>,
172-
which has the same format as <filename>postgresql.conf</filename> but should
173-
never be edited manually. This file holds settings provided through
174-
the <xref linkend="sql-altersystem"/> command. This file is automatically
175-
read whenever <filename>postgresql.conf</filename> is, and its settings take
176-
effect in the same way. Settings in <filename>postgresql.auto.conf</filename>
177-
override those in <filename>postgresql.conf</filename>.
174+
which has the same format as <filename>postgresql.conf</filename> but
175+
is intended to be edited automatically not manually. This file holds
176+
settings provided through the <xref linkend="sql-altersystem"/> command.
177+
This file is read whenever <filename>postgresql.conf</filename> is,
178+
and its settings take effect in the same way. Settings
179+
in <filename>postgresql.auto.conf</filename> override those
180+
in <filename>postgresql.conf</filename>.
181+
</para>
182+
183+
<para>
184+
External tools may also
185+
modify <filename>postgresql.auto.conf</filename>. It is not
186+
recommended to do this while the server is running, since a
187+
concurrent <command>ALTER SYSTEM</command> command could overwrite
188+
such changes. Such tools might simply append new settings to the end,
189+
or they might choose to remove duplicate settings and/or comments
190+
(as <command>ALTER SYSTEM</command> will).
178191
</para>
179192

180193
<para>
181194
The system view
182195
<link linkend="view-pg-file-settings"><structname>pg_file_settings</structname></link>
183-
can be helpful for pre-testing changes to the configurationfile, or for
196+
can be helpful for pre-testing changes to the configurationfiles, or for
184197
diagnosing problems if a <systemitem>SIGHUP</systemitem> signal did not have the
185198
desired effects.
186199
</para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp