pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shoaib Mir <shoaibmir@gmail.com>
To: Darren Reed <darrenr+postgres@fastmail.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to reindex when unable to open relation?
Date: Tue, 26 Feb 2008 17:33:07 +1100
Message-ID: <bf54be870802252233o5d7aa387o2c1eac2fcd2ae9fe@mail.gmail.com> (raw)
In-Reply-To: <47C3AE1F.2010804@fastmail.net>
References: <47C3AE1F.2010804@fastmail.net>

On Tue, Feb 26, 2008 at 5:13 PM, Darren Reed <darrenr+postgres@fastmail.net>
wrote:

> Inserts into my table started generating an error message (see below),
> and there was a log message that suggested I reindex.
>
> postgres seems to start and stop ok, but no operations on the tables
> seem to work.
>
> l# /usr/pkg/bin/pg_dump -s -U postgres
> pg_dump: failed sanity check, parent table OID 16401 of pg_rewrite entry
> OID 16403 not found
>
> Is this recoverable without using a backup?
>
>

Looks like to me corrupted system catalog!

I guess when you dropped the table it didn't delete the record from
pg_rewrite was not deleted when the parent table was dropped. So you can try
doing something:

delete from pg_rewrite where oid = 16403;

And see if this can fix the problem..

-- 
Shoaib Mir
Fujitsu Australia Software Technology
shoaibm[@]fast.fujitsu.com.au

view thread (13+ messages)  latest in thread

Message-ID: <bf54be870802252233o5d7aa387o2c1eac2fcd2ae9fe@mail.gmail.com>
Permalink:  ../bf54be870802252233o5d7aa387o2c1eac2fcd2ae9fe@mail.gmail.com/
Also on:    postgresql.org/message-id/bf54be870802252233o5d7aa387o2c1eac2fcd2ae9fe@mail.gmail.com

 · 

reply

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: shoaibmir@gmail.com, darrenr+postgres@fastmail.net
  Subject: Re: How to reindex when unable to open relation?
  In-Reply-To: <bf54be870802252233o5d7aa387o2c1eac2fcd2ae9fe@mail.gmail.com>

* 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