@@ -137,6 +137,8 @@ shared_buffers = 128MB
137
137
identifiers or numbers must be single-quoted. To embed a single
138
138
quote in a parameter value, write either two quotes (preferred)
139
139
or backslash-quote.
140
+ If the file contains multiple entries for the same parameter,
141
+ all but the last one are ignored.
140
142
</para>
141
143
142
144
<para>
@@ -169,18 +171,29 @@ shared_buffers = 128MB
169
171
In addition to <filename>postgresql.conf</filename>,
170
172
a <productname>PostgreSQL</productname> data directory contains a file
171
173
<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).
178
191
</para>
179
192
180
193
<para>
181
194
The system view
182
195
<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
184
197
diagnosing problems if a <systemitem>SIGHUP</systemitem> signal did not have the
185
198
desired effects.
186
199
</para>