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

Commit0e92519

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 collectorif you want to log messages from a failing archive_command script. (Thisis an oversimplification, in that it will work without the collector aslong as you're not sending postmaster stderr to /dev/null; but it seemslike a good idea to encourage use of the collector to avoid problemswith multiple processes concurrently scribbling on one file.)In config.sgml, do some wordsmithing of logging_collector discussion.Per bug #6518 from Janning Vygen
1 parent268ca4f commit0e92519

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
@@ -1259,9 +1259,6 @@ archive_command = 'local_backup_script.sh "%p" "%f"'
12591259
This allows all complexity to be managed within the script, which
12601260
can be written in a popular scripting language such as
12611261
<application>bash</> or <application>perl</>.
1262-
Any messages written to <literal>stderr</> from the script will appear
1263-
in the database server log, allowing complex configurations to be
1264-
diagnosed easily if they fail.
12651262
</para>
12661263

12671264
<para>
@@ -1290,6 +1287,16 @@ archive_command = 'local_backup_script.sh "%p" "%f"'
12901287
</listitem>
12911288
</itemizedlist>
12921289
</para>
1290+
1291+
<tip>
1292+
<para>
1293+
When using an <varname>archive_command</varname> script, it's desirable
1294+
to enable <xref linkend="guc-logging-collector">.
1295+
Any messages written to <systemitem>stderr</> from the script will then
1296+
appear in the database server log, allowing complex configurations to
1297+
be diagnosed easily if they fail.
1298+
</para>
1299+
</tip>
12931300
</sect3>
12941301
</sect2>
12951302

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp