mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pg_receivewal: Add --endpos option
This is primarily useful for making tests of this utility more deterministic, to avoid the complexity of starting pg_receivewal as a deamon in TAP tests. While this is less useful than the equivalent pg_recvlogical option, users can as well use it for example to enforce WAL streaming up to a end-of-backup position, to save only a minimal amount of WAL. Use this new option to stream WAL data in a deterministic way within a new set of TAP tests. Author: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -98,6 +98,22 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-E <replaceable>lsn</replaceable></option></term>
|
||||
<term><option>--endpos=<replaceable>lsn</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Automatically stop replication and exit with normal exit status 0 when
|
||||
receiving reaches the specified LSN.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If there is a record with LSN exactly equal to <replaceable>lsn</>,
|
||||
the record will be processed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--if-not-exists</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user