Re: Restore postgres to specific time

From: wd <wd(at)wdicc(dot)com>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restore postgres to specific time
Date: 2012-11-27 02:41:30
Message-ID: CABexzmiJ7s3+F05OapU+X_RsDm3CNJMbMu22y3uSxSsZ7uXbig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 26, 2012 at 11:32 PM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>wrote:

> wd wrote:
> >>> Logs are something like this:
> >>>
> >>> [ 2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 9 0]LOG: recovery
> has paused
> >>> [ 2012-11-24 21:51:33.591 CST 583 50b0d0e5.247 10 0]HINT:
> Execute pg_xlog_replay_resume() to continue.
> >>
> >> Well, try
> >>
> >> SELECT pg_xlog_replay_resume();
> >
> > I can't connect to postgres at that time.
>
> Duh.
> Then the trick is not to pause at all.
> Make sure that pause_at_recovery_target is not set in
> recovery.conf.
> Stop the recovering server, then start it again.
> That should do the trick.
>
> I've tried set pause_at_recovery_target to true, it's not work. and also
tried comment out this setting it's the same.

Restart have no effect, the recovery.conf is always there, I think it's
should be rename to recovery.done if it's work.

>
> Yours,
> Laurenz Albe
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message wd 2012-11-27 03:43:14 Re: Restore postgres to specific time
Previous Message classical_89 2012-11-27 01:23:25 Re: Correlation in pg_stats