pgsql: pg_rewind: Don't error if the two clusters are already on the sa

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_rewind: Don't error if the two clusters are already on the sa
Date: 2015-12-11 23:33:26
Message-ID: E1a7XBm-0007Vw-CK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

pg_rewind: Don't error if the two clusters are already on the same timeline

This previously resulted in an error and a nonzero exit status, but
after discussion this should rather be a noop with a zero exit status.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6b34e5563849edc12896bf5754e8fe7b88012697

Modified Files
--------------
src/bin/pg_rewind/pg_rewind.c | 59 ++++++++++++++++--------------
src/bin/pg_rewind/t/005_same_timeline.pl | 14 +++++++
2 files changed, 46 insertions(+), 27 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-12-12 00:09:14 pgsql: Add an expected-file to match behavior of latest libxml2.
Previous Message Alvaro Herrera 2015-12-11 21:46:28 pgsql: For REASSIGN OWNED for foreign user mappings

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-12-11 23:55:44 Re: Bootstrap DATA is a pita
Previous Message Mark Dilger 2015-12-11 23:30:04 Re: Bootstrap DATA is a pita