From: | wd <wd(at)wdicc(dot)com> |
---|---|
To: | "ascot(dot)moss(at)gmail(dot)com" <ascot(dot)moss(at)gmail(dot)com> |
Cc: | PostgreSQL general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Recovery.conf and PITR |
Date: | 2013-08-09 10:40:04 |
Message-ID: | CABexzmhLmBucKRr2NT4v7S8p1K0g_bZBf3436jmmpX+zwqHs1Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general |
Try add these settings,
pause_at_recovery_target=true
recovery_target_inclusive=false
On Fri, Aug 9, 2013 at 4:09 PM, ascot(dot)moss(at)gmail(dot)com
<ascot(dot)moss(at)gmail(dot)com>wrote:
> Hi,
>
> I am trying PITR in a test machine (same PG version 9.2.4 same O/S Ubuntu
> 12.04 64 bit). All archived WAL files are shipped and saved in
> /var/pgsql/data/archive, the latest transaction txid of them is 75666. I
> want to recover PG at a point of time that if XIDs are equal or smaller
> than '75634' so I have the following recovery.conf (only two lines):
>
> restore_command = 'cp /var/pgsql/data/archive/%f %p'
> recovery_target_xid = '75634'
>
>
> After the restart of PG, the recovery.conf is processed and it is renamed
> to recovery.done. However it restored all (75666) instead of '75634'.
>
> postgres=# select txid_current();
> txid_current
> --------------
> 75666
> (1 row)
>
>
> Can you please advise?
>
> regards
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | Romain Billon-Grand | 2013-08-09 10:40:29 | Re: BUG #8335: trim() un-document behaviour |
Previous Message | Albe Laurenz | 2013-08-09 09:52:20 | Re: archive folder housekeeping |
From | Date | Subject | |
---|---|---|---|
Next Message | Luca Ferrari | 2013-08-09 11:09:40 | Re: Recovery.conf and PITR |
Previous Message | Don Parris | 2013-08-09 09:57:38 | Re: How To Install Extension Via Script File? |