pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Satya Prakash Tripathi <sptripathi78@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: PITR- timeline query
Date: Thu, 13 Jul 2006 08:16:36 -0700 (PDT)
Message-ID: <20060713151636.55608.qmail@web52012.mail.yahoo.com> (raw)

Hi ,

I am experimenting with PITR aspect of postgres8.0,
and I needed some answers on this subject.

I have following questions :

1)
At time t0, I created a base backup. (got a backup
marker file named as:
0000000800000002000000A8.005E61B4.backup) 
(assume no previous base backups and recoveries...)

On time t2 I did a recovery till time t1 ( t0<t1<t2).
Now I see history file named 00000009.history. And
then onwards, the WAL filenames start with 00000009. 
Is 00000009 here the new timeline ? If so is it safe
to deduce that from .history file that gets generated
after recovery ?

2)
Now say, I was happy with the above recovery and after
a few days, at time t3 I decided to revover my db back
in time t.

What timeline should I specify in recovery.conf if:
(or do I need to specify it in each case?)

  a)  t1 < t < t2
  b)  t2 < t < t3

IMO,  in case a) the timeline of base backup would be
used, so I wouldn't need to specify timeline. While in
case b) I need to specify this new
timeline(recovery_target_timeline=00000009).
Kindly confirm...

trying to put the scenario pictorially:
   
  t0                              t2
  |               t1              |        
  |-------| ------ |---------- timeline: 00000008
                                   |  
                                   |    timeline:
00000009
                                  
|----------------------|----
                                                      
                              t3



TIA,
Satya



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



view thread (3+ messages)  latest in thread

Message-ID: <20060713151636.55608.qmail@web52012.mail.yahoo.com>
Permalink:  ../20060713151636.55608.qmail@web52012.mail.yahoo.com/
Also on:    postgresql.org/message-id/20060713151636.55608.qmail@web52012.mail.yahoo.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-admin@postgresql.org
  Cc: sptripathi78@yahoo.com
  Subject: Re: PITR- timeline query
  In-Reply-To: <20060713151636.55608.qmail@web52012.mail.yahoo.com>
  References: <20060713151636.55608.qmail@web52012.mail.yahoo.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