]> granicus.if.org Git - postgresql/commit
pg_receivewal: Add --endpos option
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 11 Sep 2017 20:30:50 +0000 (16:30 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 11 Sep 2017 20:48:30 +0000 (16:48 -0400)
commit6d9fa52645e71711410a66b5349df3be0dd49608
tree2754d8d821088df8376838f0fc2b32c814cfa00d
parentc1898c3e1e235ae35b4759d233253eff221b976a
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>
doc/src/sgml/ref/pg_receivewal.sgml
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_basebackup/t/020_pg_receivewal.pl