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 17:04:01 -0400
Message-ID: <7268.1019768641@sss.pgh.pa.us> (raw)
In-Reply-To: <3CC86506.3000302@mglenn.com>
References: <3CC80B35.1070204@mglenn.com>
<25260.1019743498@sss.pgh.pa.us>
<3CC843AD.2020400@mglenn.com>
<4286.1019759001@sss.pgh.pa.us>
<3CC858AA.8000901@mglenn.com>
<6242.1019765413@sss.pgh.pa.us>
<3CC86506.3000302@mglenn.com>
Michael Glenn <mike@mglenn.com> writes:
> [ pg_filedump output ]
Looking at this, I'm kind of wondering whether you didn't have a
transaction ID wrap after all. You've got a number of rows here that
appear to have been touched by quite large transaction numbers,
for instance:
> Item 8 -- Length: 80 Offset: 7508 (0x1d54) Flags: USED
> OID: 109529120 CID: min(0) max(0) XID: min(24597178) max(0)
^^^^^^^^
> Item 9 -- Length: 89 Offset: 6896 (0x1af0) Flags: USED
> OID: 133213920 CID: min(0) max(0) XID: min(34149469) max(0)
^^^^^^^^
and they're marked committed too, which means that some other
transaction agreed that that XID had gotten committed. You sure
that there's not anything you've forgotten to tell us about past
sins with pg_log? There's no way that XID 34149469 could have
been marked committed unless pg_log were at least 8.5 megabytes.
What I think you might be able to do as a band-aid solution is to force
up the current-XID counter, which lives in, hmm, $PGDATA/pg_variable in
7.0.*. Without the former contents of pg_log this will not give you a
completely accurate reconstruction of your data, but it should be good
at least back to the last vacuum, which is a lot better than nothing
(assuming you were more religious about vacuuming than backups ;-)).
What do you get from "od -x pg_variable"?
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: <7268.1019768641@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> <3CC858AA.8000901@mglenn.com> <6242.1019765413@sss.pgh.pa.us> <3CC86506.3000302@mglenn.com> <7268.1019768641@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