From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Glenn <mike@mglenn.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database
Date: Thu, 25 Apr 2002 14:23:21 -0400
Message-ID: <4286.1019759001@sss.pgh.pa.us> (raw)
In-Reply-To: <3CC843AD.2020400@mglenn.com>
References: <3CC80B35.1070204@mglenn.com>
<25260.1019743498@sss.pgh.pa.us>
<3CC843AD.2020400@mglenn.com>
Michael Glenn <mike@mglenn.com> writes:
> I downloaded pg_dumpfile (thank you) then eventually found out I need to
> download, configure, and point to 7.2.1 source to compile, which makes
> sense now.
> I compiled and attempted a dump with the references and without the
> references to LSN from the function FormatHeader. In both cases I
> received the dump output below indicating "Invalid header
> information.". Now, is each block header corrupted OR is the dump
> utility not able to read older pg_database files?
If you compiled the pg_dumpfile sources using 7.2 header files, then
they'd be using the 7.2 page header struct, which is the wrong thing.
You need to use the 7.0 version of the PageHeaderData struct
(see src/include/storage/bufpage.h).
My inclination would be to try to compile pg_dumpfile against the 7.0
headers not 7.2. You might have to rip out references to pg_control and
CRC checking to make that work, but there are no CRCs in 7.0 files
anyway so you won't lose any functionality. Once it does compile you
could be pretty sure that it would actually work.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mike@mglenn.com
Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database
In-Reply-To: <4286.1019759001@sss.pgh.pa.us>
References: <3CC80B35.1070204@mglenn.com> <25260.1019743498@sss.pgh.pa.us> <3CC843AD.2020400@mglenn.com> <4286.1019759001@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox