Wierd quirk of HS/SR, probably not fixable

Поиск
Список
Период
Сортировка
Искать
От
Josh Berkus
Тема
Wierd quirk of HS/SR, probably not fixable
Дата
Msg-id
4BB8E8A2.5090605@agliodbs.com
Список
Дерево обсуждения
Wierd quirk of HS/SR, probably not fixable Josh Berkus <josh@agliodbs.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Tom Lane <tgl@sss.pgh.pa.us>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Tom Lane <tgl@sss.pgh.pa.us>
Re: Wierd quirk of HS/SR, probably not fixable Fujii Masao <masao.fujii@gmail.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Simon Riggs <simon@2ndQuadrant.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Simon Riggs <simon@2ndQuadrant.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Simon Riggs <simon@2ndQuadrant.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Fujii Masao <masao.fujii@gmail.com>
Re: Wierd quirk of HS/SR, probably not fixable Robert Haas <robertmhaas@gmail.com>
Re: Wierd quirk of HS/SR, probably not fixable Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: Wierd quirk of HS/SR, probably not fixable Fujii Masao <masao.fujii@gmail.com>
Hackers,

Here's a way to trap yourself:

(1) Set up an HS/SR master
(2) pg_start_backup on the master
(3) clone the master to 1 or more slaves
(4) Fast shutdown the master (without pg_stop_backup)
(5) Restart the master
(6) Bring up the slaves

Result: the slaves will come up fine in recovery mode.  However, they
will never switch over to HS mode or start SR.  You will not be able to
pg_stop_backup() on the master.  At this point, you have no option but
to shut down the slaves and re-clone.

The only reason why this is somewhat problematic for users is that you
will not get any messages from the master or the slaves to indicate why
they won't switch modes.  So I can imagine someone wasting a lot of time
troubleshooting the wrong problems.

Suggested resolution: I don't think there's and logical "fix" for this
case; it should just be added to the docs as a failure/troubleshooting
condition.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.                                    http://www.pgexperts.com

В списке pgsql-hackers по дате отправления
От: Mark Wong
Дата:
Сообщение: new database test 5 v0.1.0
От: Peter Eisentraut
Дата:
Сообщение: Re: message clarifications
FAQ