Re: recovery_target_time ignored or recoveryalwaysrecovers to end of WAL - Mailing list pgsql-general

From Simon Riggs
Subject Re: recovery_target_time ignored or recoveryalwaysrecovers to end of WAL
Date
Msg-id 1183400694.4146.38.camel@silverbirch.site
Whole thread Raw
In response to Re: recovery_target_time ignored or recovery alwaysrecovers to end of WAL  ("Jason L. Buberel" <jason@buberel.org>)
Responses Re: recovery_target_time ignored or recoveryalwaysrecovers to end of WAL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Mon, 2007-07-02 at 09:21 -0700, Jason L. Buberel wrote:

> I downloaded the latest xlogdump source, and built/installed it against
> my 8.2.4 source tree. When I execute it however, I am informed that all
> of my WAL files (either the 'active' copies in pg_xlog or the 'archived'
> copies in my /pgdata/archive_logs dir) appear to be malformed:
>
> $ /opt/postgres-8.2.4/bin/xlogdump --port 54824 --host 127.0.0.1 --user
> postgres  ../../../archive_logs/*
> ../../../archive_logs/000000010000000F0000007C:
> Bogus page magic number D05E at offset 0
> invalid record length at F/7C00001C
> ../../../archive_logs/000000010000000F0000007C.00550700.backup:
> Partial page of 241 bytes ignored
> ../../../archive_logs/000000010000000F0000007D:
> Bogus page magic number D05E at offset 0
> invalid record length at F/7D00001C
> ../../../archive_logs/000000010000000F0000007D.0006C01C.backup:
> Partial page of 241 bytes ignored
>
> Which does not help particularly much :)
>
> I'll keep plugging away at this - perhaps my problem in setting the
> database state to a PITR is related to timezones or timestamp formatting?

For now, remove these lines from xlogdump.c, l.82-86
  if (((XLogPageHeader) pageBuffer)->xlp_magic != XLOG_PAGE_MAGIC)
  {
    printf("Bogus page magic number %04X at offset %X\n",
       ((XLogPageHeader) pageBuffer)->xlp_magic, logPageOff);
  }

The program is unfortunately release specific, which is not very useful
for you now. D05E is the correct magic number for 8.2.4.

I'll update that program once we have the main software done for 8.3. I
was hoping that Diogo would continue to support it.

--
  Simon Riggs
  EnterpriseDB   http://www.enterprisedb.com



pgsql-general by date:

Previous
From: "D. Dante Lorenso"
Date:
Subject: How-To: Aggregate data from multiple rows into a delimited list.
Next
From: "Simon Riggs"
Date:
Subject: Re: recovery_target_time ignored or recoveryalwaysrecovers to end of WAL