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

From: jayknowsunix(at)gmail(dot)com
To: Scott Whitney <swhitney(at)journyx(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: When is it safe to remove recovery.done?
Date: 2014-07-22 19:05:33
Message-ID: C9E258FA-1A56-48D2-9056-70837D4B012E@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)journyx(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Albe Laurenz 2014-07-23 09:19:35 Re: When is it safe to remove recovery.done?
Previous Message Scott Whitney 2014-07-22 18:58:33 Re: When is it safe to remove recovery.done?