Skip to content

Commit d7a8e9a

Browse files
committed
Improve documentation around logging_collector and use of stderr.
In backup.sgml, point out that you need to be using the logging collector if you want to log messages from a failing archive_command script. (This is an oversimplification, in that it will work without the collector as long as you're not sending postmaster stderr to /dev/null; but it seems like a good idea to encourage use of the collector to avoid problems with multiple processes concurrently scribbling on one file.) In config.sgml, do some wordsmithing of logging_collector discussion. Per bug #6518 from Janning Vygen
1 parent 5ce0a84 commit d7a8e9a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/src/sgml/backup.sgml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,9 +1387,6 @@ archive_command = 'local_backup_script.sh "%p" "%f"'
13871387
This allows all complexity to be managed within the script, which
13881388
can be written in a popular scripting language such as
13891389
<application>bash</> or <application>perl</>.
1390-
Any messages written to <literal>stderr</> from the script will appear
1391-
in the database server log, allowing complex configurations to be
1392-
diagnosed easily if they fail.
13931390
</para>
13941391

13951392
<para>
@@ -1418,6 +1415,16 @@ archive_command = 'local_backup_script.sh "%p" "%f"'
14181415
</listitem>
14191416
</itemizedlist>
14201417
</para>
1418+
1419+
<tip>
1420+
<para>
1421+
When using an <varname>archive_command</varname> script, it's desirable
1422+
to enable <xref linkend="guc-logging-collector">.
1423+
Any messages written to <systemitem>stderr</> from the script will then
1424+
appear in the database server log, allowing complex configurations to
1425+
be diagnosed easily if they fail.
1426+
</para>
1427+
</tip>
14211428
</sect3>
14221429
</sect2>
14231430

0 commit comments

Comments
 (0)