Re: PITR, checkpoint, and local relations - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PITR, checkpoint, and local relations
Date
Msg-id 16104.1028733782@sss.pgh.pa.us
Whole thread Raw
In response to PITR, checkpoint, and local relations  ("J. R. Nield" <jrnield@usol.com>)
List pgsql-hackers
Richard Tucker <richt@multera.com> writes:
> But you have to prevent log files reusing while you copy data files.

>> No, I don't think so.  If you are using PITR then you presumably have
>> some process responsible for archiving off log files on a continuous
>> basis.  The backup process should leave that normal operational behavior
>> in place, not muck with it.

> You want the log files necessary for recovering the database to be in the
> backup copy -- don't you?

Why?  As far as I can see, this entire feature only makes sense in the
context where you are continuously archiving log files to someplace
(let's say tape, for purposes of discussion).  Every so often you make a
backup, and what that does is it lets you recycle the log-archive tapes
older than the start of the backup.  You still need the log segments
newer than the start of the backup, and you might as well just keep the
tapes that they're going to be on anyway.  Doing it the way you propose
(ie, causing a persistent change in the behavior of the log archiving
process) simply makes the whole operation more complex and more fragile,
without any actual gain in functionality that I can detect.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: CLUSTER and indisclustered
Next
From: Tom Lane
Date:
Subject: Re: Open 7.3 items