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

Started by Peter Eisentrautabout 10 years ago4 messages
#1Peter Eisentraut
peter_e@gmx.net

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(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: pgsql: pg_rewind: Don't error if the two clusters are already on the sa

Peter Eisentraut <peter_e@gmx.net> writes:

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.

Hm, if we're going to do that, shouldn't we back-patch the behavior
change into 9.5 as well?

regards, tom lane

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#3Michael Paquier
michael.paquier@gmail.com
In reply to: Tom Lane (#2)
Re: pgsql: pg_rewind: Don't error if the two clusters are already on the sa

On Sat, Dec 12, 2015 at 9:11 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

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.

Hm, if we're going to do that, shouldn't we back-patch the behavior
change into 9.5 as well?

+1. It would be good to get consistent across branches here.
-- 
Michael

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

#4Robert Haas
robertmhaas@gmail.com
In reply to: Michael Paquier (#3)
Re: [COMMITTERS] pgsql: pg_rewind: Don't error if the two clusters are already on the sa

On Fri, Dec 11, 2015 at 8:44 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:

On Sat, Dec 12, 2015 at 9:11 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

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.

Hm, if we're going to do that, shouldn't we back-patch the behavior
change into 9.5 as well?

+1. It would be good to get consistent across branches here.

This is one of the (darned few) things still on the open items list
for 9.5. Peter, are you going to take care of this? Or alternatively
make an argument that we shouldn't do this?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers