Re: Restore postgres to specific time

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "wd *EXTERN*" <wd(at)wdicc(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Restore postgres to specific time
Date: 2012-11-26 15:32:47
Message-ID: D960CB61B694CF459DCFB4B0128514C208C0BF67@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Doug Hunley 2012-11-26 17:12:40 backslash encoded data changed during upgrade?
Previous Message gautammaji 2012-11-26 14:09:34 Re: Regarding the shared disk fail over cluster configuration