Re: pg_dump: schema with OID 145167 does not exist

From: Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com>
To: Paul Wouters <paul(dot)wouters(at)resilion(dot)be>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump: schema with OID 145167 does not exist
Date: 2012-04-25 07:02:12
Message-ID: CAGWYGjUdFA-UKSptper9nx8dV4C2uz+CvczU6=oO2teZ6m6GdQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

Once I had the same problem with not existing schema. In my case removing
all the references to the schema worked fine and I had no problems with the
db ever since. It wa PG 8.2.1 and since the operation we migrated all the
DBs including the one to 9.0.6 and everything works fine.

Hope this helps.

Regards
Luke

2012/3/21 Paul Wouters <paul(dot)wouters(at)resilion(dot)be>

> Hello,****
>
> ** **
>
> We have some problems using pg_dump. We get the following error:****
>
> pg_dump: schema with OID 145167 does not exist****
>
> ** **
>
> I found one entry in the pg_type and another one in the pg_class.****
>
> I was able to remove the one in the pg_class but when we try to remove the
> row in the pg_type, I get an error:****
>
> Error: Invalid input syntax for type oid: “record_in”****
>
> ** **
>
> select * from pg_type where typnamespace = 145167;****
>
> typname | typnamespace | typowner | typlen | typbyval | typtype |
> typisdefined | typdelim | typrelid | typelem | typinput | typoutput |
> typreceive | typsend | typanalyze | typalign | typstorage | typnotnull
> | typbasetype | typtypmod | typndims | typdefaultbin | typdefault ****
>
>
> -----------------+--------------+----------+--------+----------+---------+--------------+----------+----------+---------+-----------+------------+-------------+-------------+------------+----------+------------+------------+-------------+-----------+----------+---------------+------------
> ****
>
> trainings0rrtop | 145167 | 25488 | -1 | f | c |
> t | , | 145208 | 0 | record_in | record_out |
> record_recv | record_send | - | d | x | f
> | 0 | -1 | 0 | | ****
>
> (1 row)****
>
> ** **
>
> In the table pg_depend I have also e reference to 124208****
>
> Can I Also remove that dependency?****
>
> ** **
>
> We are using the 8.2.5 version of PG.****
>
> ** **
>
> Kind regards****
>
> Paul****
>

--
Łukasz Brodziak
"Do you bury me when I'm gone
Do you teach me while I'm here
Just as soon I belong
Then it's time I disappear"

Browse pgsql-admin by date

  From Date Subject
Next Message Fredrik Israelsson 2012-04-25 09:49:10
Previous Message Naoko Reeves 2012-04-24 04:09:28 Re: Calling a plpgsql function with an array of results?