Re: pg_dump return failed sanity check - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump return failed sanity check
Date
Msg-id 21336.958619934@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump return failed sanity check  (Patrick Robin <Patrick.Robin@disney.com>)
List pgsql-general
Patrick Robin <Patrick.Robin@disney.com> writes:
> When I try to use pg_dump, I get this error. Can it have something to
> do with a custom type I added. I made sure I added the input/output functions
> and comparision functions for sorting and queries.
> The type works fine in SQL queries in general.

>> pg_dump -s scm
> \connect - d23adm
> failed sanity check,  type with oid 457690 was not found

That's probably an indication that you forgot to delete a function that
takes or returns an older custom type that you deleted.

Look in pg_proc for a function containing 457690 in proargtypes or
prorettype, and delete that tuple (or tuples if more than one).

pg_dump oughta be more helpful about where it sees the problem...

            regards, tom lane

pgsql-general by date:

Previous
From: "Michael S. Kelly"
Date:
Subject: RE: 7.0 psql, readline and history.
Next
From: Karl DeBisschop
Date:
Subject: Re: getting libperl.so