pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gabriele Bartolini <Gabriele.Bartolini@2ndQuadrant.it>
To: ascot.moss@gmail.com
Cc: PostgreSQL general <pgsql-general@postgresql.org>
Subject: Re: Recovery.conf and PITR
Date: Fri, 09 Aug 2013 10:41:03 +0200
Message-ID: <87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

 Hello,

 On Fri, 9 Aug 2013 16:09:49 +0800, "ascot.moss@gmail.com" 
 <ascot.moss@gmail.com> wrote:
> postgres=# select txid_current();
>  txid_current
> --------------
>         75666
> (1 row)
>
>
> Can you please advise?

 WAL contains REDO log information, which means only COMMITTED 
 transactions will be recovered. Sequentiality of TXID refers to the 
 start of the transaction. Transactions can therefore be committed in a 
 different order (meaning that 75666 could for example be committed 
 before 75634 in your case).

 Remember that if you do not specify "recovery_target_inclusive = 
 false", your txid target will be included in the recovered server.

 For further information, I suggest you look at: 
 http://www.postgresql.org/docs/9.2/static/recovery-target-settings.html

 Cheers,
 Gabriele
-- 
  Gabriele Bartolini - 2ndQuadrant Italia
  PostgreSQL Training, Services and Support
  Gabriele.Bartolini@2ndQuadrant.it - www.2ndQuadrant.it


-- 
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: <87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it>
Permalink:  ../87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it/
Also on:    postgresql.org/message-id/87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it

 · 

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: Gabriele.Bartolini@2ndQuadrant.it, ascot.moss@gmail.com, pgsql-general@postgresql.org
  Subject: Re: Recovery.conf and PITR
  In-Reply-To: <87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it>
  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> <87b71f906c353cb82c1b75c3b0e4963e@2ndquadrant.it>

* 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