From: Tom Lane <tgl@sss.pgh.pa.us>
To: Johann Spies <jhspies@adept.co.za>
Cc: pgsql-sql@postgresql.org
Subject: Re: sanity check fails
Date: Tue, 16 May 2000 00:49:33 -0400
Message-ID: <9768.958452573@sss.pgh.pa.us> (raw)
In-Reply-To: <20000515145503.A3938@futurenet.co.za>
References: <20000515145503.A3938@futurenet.co.za>
Johann Spies <jhspies@adept.co.za> writes:
> When I try to backup my database using pg_dump I get the following error:
> -- dumping out user-defined functions
> failed sanity check, type with oid 96867 was not found
> How can I correct that?
It sounds like you had a user-defined type that you deleted without
first having deleted all the functions that accepted or returned that
type. You can look for the culprit function with
select * from pg_proc where prorettype = 96867 or
pg_proc.proargtypes[0] = 96867 or
pg_proc.proargtypes[1] = 96867 or
...
pg_proc.proargtypes[7] = 96867;
Some room for improvement here, obviously: pg_dump ought to identify
where it found the dangling type reference, and even better you
shouldn't be able to drop a still-referenced type in the first place...
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jhspies@adept.co.za
Subject: Re: sanity check fails
In-Reply-To: <9768.958452573@sss.pgh.pa.us>
References: <20000515145503.A3938@futurenet.co.za> <9768.958452573@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