pgsql: Add pg_rewind, for re-synchronizing a master server after failba

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add pg_rewind, for re-synchronizing a master server after failba
Date: 2015-03-23 17:56:58
Message-ID: E1Ya6aw-0005qo-4n@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add pg_rewind, for re-synchronizing a master server after failback.

Earlier versions of this tool were available (and still are) on github.

Thanks to Michael Paquier, Alvaro Herrera, Peter Eisentraut, Amit Kapila,
and Satoshi Nagayasu for review.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/61081e75c6741024f7717ade0450090590e96c85

Modified Files
--------------
doc/src/sgml/high-availability.sgml | 4 +-
doc/src/sgml/ref/allfiles.sgml | 1 +
doc/src/sgml/ref/pg_rewind.sgml | 237 ++++++++++++
doc/src/sgml/reference.sgml | 1 +
src/bin/Makefile | 1 +
src/bin/pg_rewind/.gitignore | 7 +
src/bin/pg_rewind/Makefile | 52 +++
src/bin/pg_rewind/RewindTest.pm | 271 ++++++++++++++
src/bin/pg_rewind/copy_fetch.c | 261 +++++++++++++
src/bin/pg_rewind/datapagemap.c | 126 +++++++
src/bin/pg_rewind/datapagemap.h | 32 ++
src/bin/pg_rewind/fetch.c | 61 +++
src/bin/pg_rewind/fetch.h | 46 +++
src/bin/pg_rewind/file_ops.c | 305 +++++++++++++++
src/bin/pg_rewind/file_ops.h | 24 ++
src/bin/pg_rewind/filemap.c | 667 +++++++++++++++++++++++++++++++++
src/bin/pg_rewind/filemap.h | 108 ++++++
src/bin/pg_rewind/libpq_fetch.c | 464 +++++++++++++++++++++++
src/bin/pg_rewind/logging.c | 140 +++++++
src/bin/pg_rewind/logging.h | 37 ++
src/bin/pg_rewind/nls.mk | 9 +
src/bin/pg_rewind/parsexlog.c | 374 ++++++++++++++++++
src/bin/pg_rewind/pg_rewind.c | 550 +++++++++++++++++++++++++++
src/bin/pg_rewind/pg_rewind.h | 44 +++
src/bin/pg_rewind/t/001_basic.pl | 80 ++++
src/bin/pg_rewind/t/002_databases.pl | 41 ++
src/bin/pg_rewind/t/003_extrafiles.pl | 61 +++
src/bin/pg_rewind/timeline.c | 131 +++++++
src/tools/msvc/Mkvcbuild.pm | 8 +-
29 files changed, 4141 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-03-23 18:27:45 pgsql: Try to fix MSVC build of pg_rewind.
Previous Message Andres Freund 2015-03-23 16:11:30 pgsql: Don't delay replication for less than recovery_min_apply_delay's