PG_RECEIVEWAL(1) PostgreSQL 18.6 Documentation PG_RECEIVEWAL(1) (NAME) pg_receivewal - (write-ahead logs) PostgreSQL (SYNOPSIS) pg_receivewal [...] (DESCRIPTION) pg_receivewal (write-ahead log) PostgreSQL . (streaming replication) . ( 25.3 ) . pg_receivewal archive_command archive_library . pg_receivewal archive_timeout . WAL (standby) PostgreSQL pg_receivewal WAL (flush ) WAL . WAL --synchronous . pg_receivewal WAL (apply) synchronous_commit remote_apply (synchronous standby) . (commit) . synchronous_standby_names application_name pg_receivewal synchronous_commit remote_apply . PostgreSQL (replication) . REPLICATION ( 21.2 ) (superuser) pg_hba.conf . max_wal_senders (session) . pg_receivewal : 1. WAL WAL . 2. replication slot READ_REPLICATION_SLOT restart_lsn slot . PostgreSQL . 3. (flush) WAL IDENTIFY_SYSTEM . pg_receivewal . -n . pg_receivewal SIGINT (Control+C) SIGTERM ..SH " (OPTIONS)" -D directory --directory=directory . . -E lsn --endpos=lsn 0 LSN . LSN lsn . --if-not-exists --create-slot . -n --no-loop . --no-sync pg_receivewal WAL . WAL . WAL . --synchronous . -s interval --status-interval=interval . . . . -S slotname --slot=slotname pg_receivewal ( 26.2.6 ). pg_receivewal . pg_receivewal standby WAL . . --synchronous ( ) . --synchronous WAL . --status-interval . pg_receivewal standby . -v --verbose (verbose) . -Z level -Z method[:detail] --compress=level --compress=method[:detail] (write-ahead logs) . gzip lz4 ( PostgreSQL --with-lz4 ) none . . . keyword keyword=value . level . . 0 gzip 0 . .gz gzip .lz4 lz4 . . -d connstr --dbname=connstr . --dbname pg_receivewal . (replication) ~/.pgpass . PostgreSQL . -h host --host=host . . PGHOST ( ) . -p port --port=port TCP . PGPORT . -U username --username=username . -w --no-password . .pgpass . . -W --password pg_receivewal ..sp pg_receivewal . pg_receivewal . -W . pg_receivewal replication slot : --create-slot replication slot --slot . --drop-slot replication slot --slot . : -V --version pg_receivewal . -? --help pg_receivewal . (EXIT STATUS) pg_receivewal SIGINT SIGTERM 0 . ( .) . (ENVIRONMENT) PostgreSQL libpq ( 32.15 ). PG_COLOR . always auto never. (NOTES) pg_receivewal archive_command archive_library WAL replication slot . write-ahead log (recycle) archive_command archive_library replication slot WAL . WAL replication slot . pg_receivewal WAL ..SH " (EXAMPLES)" write-ahead log mydbserver /usr/local/pgsql/archive: $ pg_receivewal -h mydbserver -D /usr/local/pgsql/archive (SEE ALSO) pg_basebackup(1) PostgreSQL 18.6 2026 PG_RECEIVEWAL(1)