Re: is there a warm standby sync trigger?

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: John Smith <jayzee(dot)smith(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: is there a warm standby sync trigger?
Date: 2014-10-24 12:01:54
Message-ID: CAB7nPqRXwEHBeEZ=M5DPF8coFFuAr3bRdOyt==eN=LikVKFAPA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 24, 2014 at 12:30 AM, John Smith <jayzee(dot)smith(at)gmail(dot)com> wrote:
>
> i want to setup a warm standby that listens 24/7 but only syncs when
> told to (ie only when i am ok with the database updates, will i
> trigger the sync).
> can i?
>
> i don't want to manually backup and restore like i do now.

That's what pause_at_recovery_target is aimed for:
http://www.postgresql.org/docs/devel/static/recovery-target-settings.html
Simply set up the recovery target you want to check, and use
pause_at_recovery_target to put the standby in a latent state you can
check. If the state of your server does not satisfy your needs,
shutdown the server and change the target. Note that operations are
not backward btw.
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message TigerNassau 2014-10-24 14:14:01 Osx stopping to install
Previous Message Michael Paquier 2014-10-24 09:56:17 Re: ARMv5