pg_receivewal: Add --endpos option

Enterprise / PostgreSQL - Peter Eisentraut [] - 11 September 2017 16:48 EDT

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

6d9fa52 pg_receivewal: Add --endpos option
doc/src/sgml/ref/pg_receivewal.sgml | 16 ++++++++++
src/bin/pg_basebackup/pg_receivewal.c | 38 ++++++++++++++++++-----
src/bin/pg_basebackup/t/ | 45 +++++++++++++++++++++++++++-
3 files changed, 91 insertions(+), 8 deletions(-)


  • Share