X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 3AB809FB1D3 for ; Tue, 18 Jul 2006 08:01:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 09488-04-4 for ; Tue, 18 Jul 2006 11:00:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web52002.mail.yahoo.com (web52002.mail.yahoo.com [206.190.48.85]) by postgresql.org (Postfix) with SMTP id C31BF9FA4A7 for ; Tue, 18 Jul 2006 07:50:28 -0300 (ADT) Received: (qmail 60317 invoked by uid 60001); 18 Jul 2006 10:50:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zlFDl8F9yxmdS84IaBnQmIaRcbYt7PMH3IGS88+yJfPo08DB8TLgY2UhQTYmn5tP7Xa8Bcd9zJ4zAVwnl5ECsvw9qR3bh6COMeRoemYg/FMrPyOeOgSWscpnNkNnwPj8UlJOnq5glElczU008gsy2o7WouxWSX4DAy6zrCEmczM= ; Message-ID: <20060718105027.60315.qmail@web52002.mail.yahoo.com> Received: from [203.126.136.220] by web52002.mail.yahoo.com via HTTP; Tue, 18 Jul 2006 03:50:26 PDT Date: Tue, 18 Jul 2006 03:50:26 -0700 (PDT) From: Satya Prakash Tripathi Subject: Re: PITR- timeline query To: pgsql-admin@postgresql.org In-Reply-To: <20060713151636.55608.qmail@web52012.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.276 tagged_above=0 required=5 tests=MAILTO_TO_SPAM_ADDR X-Spam-Level: X-Archive-Number: 200607/152 X-Sequence-Number: 22398 Can anyone answer please ? --- Satya Prakash Tripathi wrote: > 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 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 > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com