pg_receivexlog already has the capability to use a replication slot to reserve WAL on the upstream node. But the used slot currently has to be created via SQL.
To allow using slots directly, without involving SQL, add--create-slot and --drop-slot actions, analogous to the logical slot manipulation support in pg_recvlogical.
Author: Michael Paquier Discussion: CABUevEx+zrOHZOQg+dPapNPFRJdsk59b=TSVf30Z71GnFXhQaw@mail.gmail.com
d9f38c7 Add support for managing physical replication slots to pg_receivexlog.
doc/src/sgml/ref/pg_receivexlog.sgml | 31 ++++++-
src/bin/pg_basebackup/pg_receivexlog.c | 155 ++++++++++++++++++++++++++++----
2 files changed, 170 insertions(+), 16 deletions(-)
Upstream: git.postgresql.org