OS Manuals

/usr/bin/pg_rewind

A sophisticated object-relational DBMS

From postgresql-12 12.18-r4 (os), captured 2026-11-05 by running pg_rewind --help (exit 0). permalink

pg_rewind resynchronizes a PostgreSQL cluster with another copy of the cluster.

Usage:
  pg_rewind [OPTION]...

Options:
  -D, --target-pgdata=DIRECTORY  existing data directory to modify
      --source-pgdata=DIRECTORY  source data directory to synchronize with
      --source-server=CONNSTR    source server to synchronize with
  -n, --dry-run                  stop before modifying anything
  -N, --no-sync                  do not wait for changes to be written
                                 safely to disk
  -P, --progress                 write progress messages
      --debug                    write a lot of debug messages
  -V, --version                  output version information, then exit
  -?, --help                     show this help, then exit

Report bugs to <pgsql-bugs@lists.postgresql.org>.
Options (9)
OptionDescriptionSource
-D, --target-pgdata DIRECTORYexisting data directory to modifyhelp
--source-pgdata DIRECTORYsource data directory to synchronize withhelp
--source-server CONNSTRsource server to synchronize withhelp
-n, --dry-runstop before modifying anythinghelp
-N, --no-syncdo not wait for changes to be written safely to diskhelp
-P, --progresswrite progress messageshelp
--debugwrite a lot of debug messageshelp
-V, --versionoutput version information, then exithelp
-?, --helpshow this help, then exithelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.