pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ascot.moss@gmail.com <ascot.moss@gmail.com>
To: PostgreSQL general <pgsql-general@postgresql.org>
Cc: ascot.moss@gmail.com
Subject: Recovery.conf and PITR
Date: Fri, 9 Aug 2013 16:09:49 +0800
Message-ID: <D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com> (raw)
In-Reply-To: <CAL_0b1sXizXnEynWYqni6Zc=PVGbaay3z+xG9tqbLQewnKdqqQ@mail.gmail.com>
References: <CAP-PUP0QM0ZAiz9vOpNT=WEoa_inoyVfZw2ceHAHiZAqGpSQ1w@mail.gmail.com>
	<1375985902.2599.YahooMailNeo@web162904.mail.bf1.yahoo.com>
	<CAL_0b1ubFBUEYF0oJAxshagKG+vZXJfybHpRBKuiSL=jSDxeSw@mail.gmail.com>
	<CAP-PUP1qwpyCgARqdgAhPkF0BcLnLsOO_84iLeCkHDSZrjcqRw@mail.gmail.com>
	<CAL_0b1sXizXnEynWYqni6Zc=PVGbaay3z+xG9tqbLQewnKdqqQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (7+ messages)  latest in thread

Message-ID: <D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com>
Permalink:  ../D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com/
Also on:    postgresql.org/message-id/D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ascot.moss@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Recovery.conf and PITR
  In-Reply-To: <D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com>
  References: <CAP-PUP0QM0ZAiz9vOpNT=WEoa_inoyVfZw2ceHAHiZAqGpSQ1w@mail.gmail.com> <1375985902.2599.YahooMailNeo@web162904.mail.bf1.yahoo.com> <CAL_0b1ubFBUEYF0oJAxshagKG+vZXJfybHpRBKuiSL=jSDxeSw@mail.gmail.com> <CAP-PUP1qwpyCgARqdgAhPkF0BcLnLsOO_84iLeCkHDSZrjcqRw@mail.gmail.com> <CAL_0b1sXizXnEynWYqni6Zc=PVGbaay3z+xG9tqbLQewnKdqqQ@mail.gmail.com> <D4F75986-A768-4751-A2D9-D94BE093DCDD@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox