Skip to content

pg_rewind

shell
postgres@VM-16-8-debian:/usr/lib/postgresql/13/bin$ ./pg_rewind --help
pg_rewind用一个PostgreSQL集簇的另一个拷贝重新同步了该集簇。

用法:
  pg_rewind [选项]...

选项:
  -c, --restore-target-wal       use restore_command in target configuration to
                                 retrieve WAL files from archives
  -D, --target-pgdata=DIRECTORY  已有的要修改的数据目录
      --source-pgdata=DIRECTORY  要与之同步的源数据目录,二选一
      --source-server=CONNSTR    要与之同步的源服务器,二选一
  -n, --dry-run                  在修改任何东西之前停止
  -N, --no-sync                  不用等待变化安全
                                 写入磁盘
  -P, --progress                 写出进度消息
  -R, --write-recovery-conf      write configuration for replication
                                 (requires --source-server)
      --debug                    写出很多调试消息
      --no-ensure-shutdown       do not automatically fix unclean shutdown
  -V, --version                  输出版本信息,然后退出
  -?, --help                     显示本帮助,然后退出

Report bugs to <pgsql-bugs@lists.postgresql.org>.
PostgreSQL home page: <https://www.postgresql.org/>