macOS / binaries /

pg_rewind

/usr/local/bin/pg_rewind
Synchronize a PostgreSQL data directory with another data directory that was forked from it

pg_rewind is a tool for synchronizing a PostgreSQL cluster with another copy of the same cluster, after the clusters' timelines have diverged. A typical scenario is to bring an old primary server back online after failover as a standby that follows the new primary.