postgresql_16:7.2.14.5 Notes
PostgreSQL 16 > Reference > PostgreSQL Client Applications > pg_receivewal > Notes
When using pg_receivewal instead of (see guc-archive-command) or (see guc-archive-library) as the main WAL backup method, it is strongly recommended to use replication slots. Otherwise, the server is free to recycle or remove write-ahead log files before they are backed up, because it does not have any information, either from (see guc-archive-command) or (see guc-archive-library) or the replication slots, about how far the WAL stream has been archived. Note, however, that a replication slot will fill up the server's disk space if the receiver does not keep up with fetching the WAL data.
pg_receivewal will preserve group permissions on the received WAL files if group permissions are enabled on the source cluster.