From: Tom Lane <tgl@sss.pgh.pa.us>
To: tony@altonet.co.za
Cc: pgsql-admin@postgresql.org
Subject: Re: problem with pg_statistic_relid_att_index
Date: Mon, 10 Mar 2008 10:49:54 -0400
Message-ID: <23797.1205160594@sss.pgh.pa.us> (raw)
In-Reply-To: <20080310125732.332572E014D@postgresql.org>
References: <20080310125732.332572E014D@postgresql.org>
"Tony Da Silva" <tony@altonet.co.za> writes:
> When I log into pgsql I see this:
> ERROR: Invalid page header in block 3 of pg_statistic_relid_att_index
I can't think of any reason that a simple connection attempt would be
trying to read pg_statistic. Perhaps you have some nontrivial query
in your ~/.psqlrc? If so try taking that out.
If that doesn't work you might have to resort to setting
zero_damaged_pages in postgresql.conf, but that's a pretty dangerous
tool --- it might zap pages you weren't expecting it to. Don't
keep it on any longer than you absolutely have to.
Once you do get into the DB you should be able to just REINDEX
pg_statistic to fix the problem. (In 7.3 you might have to use a
standalone backend for that, I don't recall for sure.)
> Welcome to psql 7.3.4, the PostgreSQL interactive terminal.
Egad. You do know that 7.3 was up to 7.3.21 before we obsoleted it?
If your DB is unrecoverable because of some data-eating bug that was
fixed in the past four-plus years, you're not going to get a lot of
sympathy.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, tony@altonet.co.za
Subject: Re: problem with pg_statistic_relid_att_index
In-Reply-To: <23797.1205160594@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