Re: When is it safe to remove recovery.done?

Поиск
Список
Период
Сортировка
От jayknowsunix@gmail.com
Тема Re: When is it safe to remove recovery.done?
Дата
Msg-id C9E258FA-1A56-48D2-9056-70837D4B012E@gmail.com
обсуждение исходный текст
Ответ на Re: When is it safe to remove recovery.done?  (Scott Whitney <scott@journyx.com>)
Список pgsql-admin
Well, I do keep a recovery.conf master file in the Postgres home directory on each of the systems. My failover script takes care of copying it up into the data directory, as well as making any required changes to it. (I use two standby servers, so if the primary fails, one gets promoted and the other must be repointed.)

Sent from my iPad

On Jul 22, 2014, at 2:58 PM, Scott Whitney <scott@journyx.com> wrote:

Well, it depends on whether or not you need the file.

It's renamed so the system doesn't accidentally try to re-enter recovery mode.

However if you're still planning on having a standby, you _will_ need a recovery.conf file, and that's what this is, just renamed.



After successfully testing a failover between my primary and a standby server, the old recovery.conf file is renamed recovery.done. As this system is now the master, I don't see a
need to keep that file around, but is it safe to remove it now?
--
Jay


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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Scott Whitney
Дата:
Сообщение: Re: When is it safe to remove recovery.done?
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: When is it safe to remove recovery.done?