Need help with pg_rewind?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

126 Stars 19 Forks 80 Commits 0 Opened issues


Tool for resynchronizing a Postgres database after failover

Services available


Need anything else?

Contributors list


pgrewind is a tool for synchronizing a PostgreSQL data directory with another PostgreSQL data directory that was forked from the first one. The result is equivalent to rsyncing the first data directory (referred to as the old cluster from now on) with the second one (the new cluster). The advantage of pgrewind over rsync is that pg_rewind uses the WAL to determine changed data blocks, and does not require reading through all files in the cluster. That makes it a lot faster when the database is large and only a small portion of it differs between the clusters.

Note: As pgrewind has been included in PostgreSQL 9.5, new major releases of pgrewind will not be included in this repository. This means that master branch is now inactive.

For those reasons, this branch is actually empty of content and will not be updated anymore. For versions compatible with PostgreSQL 9.3 and 9.4, please refer to branches REL93STABLE and REL94STABLE respectively.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.