Re: PITR COPY Failure (was Point in Time Recovery)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PITR COPY Failure (was Point in Time Recovery)
Date: 2004-07-20 14:00:35
Message-ID: 13342.1090332035@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers pgsql-patches

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> On Tue, 2004-07-20 at 13:51, Tom Lane wrote:
>> Ugh. I'm beginning to think we ought to revert the patch that added the
>> don't-split-across-files logic to XLogInsert; that seems to have broken
>> more assumptions than I realized.

> The problem was that a zero length XLOG_WASTED_SPACE record just fell
> out of ReadRecord when it shouldn't have. By giving it a helping hand it
> makes it through with pointers correctly set, and everything else was
> already thought of in the earlier patch, so xlog_redo etc happens.

Yeah, but the WASTED_SPACE/FILE_HEADER stuff is already pretty ugly, and
adding two more warts to the code to support it is sticking in my craw.
I'm thinking it would be cleaner to treat the extra labeling information
as an extension of the WAL page header.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Simon Riggs 2004-07-20 14:19:40 Re: PITR COPY Failure (was Point in Time Recovery)
Previous Message Nigel Bishop 2004-07-20 13:49:30 Error in logfile on DB startup

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2004-07-20 14:19:40 Re: PITR COPY Failure (was Point in Time Recovery)
Previous Message Andrew Dunstan 2004-07-20 13:24:57 Re: localhost redux

Browse pgsql-patches by date

  From Date Subject
Next Message Simon Riggs 2004-07-20 14:19:40 Re: PITR COPY Failure (was Point in Time Recovery)
Previous Message Andreas Pflug 2004-07-20 13:26:03 Re: logfile subprocess and Fancy File Functions