Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 56F0147589A for ; Thu, 25 Apr 2002 14:23:45 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g3PINLF04289; Thu, 25 Apr 2002 14:23:21 -0400 (EDT) To: Michael Glenn Cc: pgsql-admin@postgresql.org Subject: Re: Database 'xxxx', OID yyyyy, has disappeared from pg_database In-reply-to: <3CC843AD.2020400@mglenn.com> References: <3CC80B35.1070204@mglenn.com> <25260.1019743498@sss.pgh.pa.us> <3CC843AD.2020400@mglenn.com> Comments: In-reply-to Michael Glenn message dated "Thu, 25 Apr 2002 13:58:05 -0400" Date: Thu, 25 Apr 2002 14:23:21 -0400 Message-ID: <4286.1019759001@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/248 X-Sequence-Number: 4136 Michael Glenn 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