Re: PITR timeline question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Nasby <jnasby(at)pervasive(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PITR timeline question
Date: 2006-08-09 23:57:04
Message-ID: 2266.1155167824@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jim Nasby <jnasby(at)pervasive(dot)com> writes:
> On Aug 3, 2006, at 3:01 PM, Tom Lane wrote:
>> The only way to "roll time backwards" is to replace the data directory
>> with a backup, so if I understand your question correctly, the answer
>> is no.

> Well, specifically I was thinking of...

> Roll PITR forward and start database
> Do a bunch of stuff
> Got more WAL files... start database back in recovery and roll
> forward to end of new WAL files (throwing away everything that was
> done previously).

No, that definitely won't work, since any data pages touched by the
"bunch of stuff" and not by the new WAL files will not have been
reverted to their prior states --- while any pages touched in common
*will* have been overwritten. Net result: inconsistent database.

There's been some speculation about allowing a standby server to execute
purely read-only operations, but it's just speculation so far.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hiroshi Saito 2006-08-10 01:04:04 Re: [GENERAL] WIN32 Build?
Previous Message Dann Corbit 2006-08-09 23:12:25 Re: WIN32 Build?