pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikael Kjellström <mikael.kjellstrom@mksoft.nu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Corrupt view in PostgreSQL 9.0.9
Date: Fri, 28 Sep 2012 19:31:58 +0200
Message-ID: <5065DF0E.3050004@mksoft.nu> (raw)
In-Reply-To: <8771.1348853215@sss.pgh.pa.us>
References: <5065AFAB.1030305@mksoft.nu>
	<22618.1348842939@sss.pgh.pa.us>
	<5065CA70.7010500@mksoft.nu>
	<4179.1348851715@sss.pgh.pa.us>
	<5065DCDE.1080109@mksoft.nu>
	<8771.1348853215@sss.pgh.pa.us>

On 2012-09-28 19:26, Tom Lane wrote:

> =?ISO-8859-1?Q?Mikael_Kjellstr=F6m?= <mikael.kjellstrom@mksoft.nu> writes:
>> I tried the reindex and then the manual delete of the view from
>> pg_class.  That took care of the rows in pg_attribute but when I tried
>> to run pg_dump I now get this:
>
>> pg_dump: failed sanity check, parent table OID 16547 of pg_rewrite entry
>> OID 16550 not found
>
> Oh, okay, pg_dump is doing more cross-checking than I remembered.
> That's the ON SELECT rule for the broken view.  You'll need to delete it
> manually too, and perhaps also the pg_type row if pg_dump chances to
> notice that.  I doubt you'll need to clean up the pg_attribute rows.

Ok, that did the trick.  Now the backup completed.

Your recomendation is to restore the backup to a new database and drop 
the old one, right?

/Mikael




view thread (9+ messages)  latest in thread

Message-ID: <5065DF0E.3050004@mksoft.nu>
Permalink:  ../5065DF0E.3050004@mksoft.nu/
Also on:    postgresql.org/message-id/5065DF0E.3050004@mksoft.nu

 · 

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 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-bugs@postgresql.org
  Cc: mikael.kjellstrom@mksoft.nu, tgl@sss.pgh.pa.us
  Subject: Re: Corrupt view in PostgreSQL 9.0.9
  In-Reply-To: <5065DF0E.3050004@mksoft.nu>
  References: <5065AFAB.1030305@mksoft.nu> <22618.1348842939@sss.pgh.pa.us> <5065CA70.7010500@mksoft.nu> <4179.1348851715@sss.pgh.pa.us> <5065DCDE.1080109@mksoft.nu> <8771.1348853215@sss.pgh.pa.us> <5065DF0E.3050004@mksoft.nu>

* 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