diff options
author | Magnus Hagander | 2012-05-27 09:05:24 +0000 |
---|---|---|
committer | Magnus Hagander | 2012-05-27 09:05:24 +0000 |
commit | 16282ae688de2b320cf176e9be8a89e4dfc60698 (patch) | |
tree | afcdccdc812a01494100a14638653d4c023980b6 /doc/src | |
parent | 2b97db61dd0bffb0843eb2ea9be054d925e88ef1 (diff) |
Make pg_recievexlog by default loop on connection failures
Avoids the need for an external script in the most common
scenario. Behavior can be overridden using the -n/--noloop
commandline parameter.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_receivexlog.sgml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml index 8e5fca40228..f0a7763bdfc 100644 --- a/doc/src/sgml/ref/pg_receivexlog.sgml +++ b/doc/src/sgml/ref/pg_receivexlog.sgml @@ -58,6 +58,14 @@ PostgreSQL documentation configured with <xref linkend="guc-max-wal-senders"> set high enough to leave at least one session available for the stream. </para> + + <para> + If the connection is lost, or if it cannot be initially established, + with a non-fatal error, <application>pg_receivexlog</application> will + retry the connection indefinitely, and reestablish streaming as soon + as possible. To avoid this behavior, use the <literal>-n</literal> + parameter. + </para> </refsect1> <refsect1> @@ -87,6 +95,17 @@ PostgreSQL documentation <variablelist> <varlistentry> + <term><option>-n</option></term> + <term><option>--noloop</option></term> + <listitem> + <para> + Don't loop on connection errors. Instead, exit right away with + an error. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-v</option></term> <term><option>--verbose</option></term> <listitem> |