Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
pg_rewind ========= pg_rewind 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 pg_rewind 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 pg_rewind has been included in PostgreSQL 9.5, new major releases of pg_rewind 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 REL9_3_STABLE and REL9_4_STABLE respectively.