pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: RW <postgres@tauceti.net>
To: pgsql-admin@postgresql.org
Subject: Re: pg_dump: schema with OID 16396 does not exist
Date: Thu, 31 Aug 2006 10:25:44 +0200
Message-ID: <44F69D08.80308@tauceti.net> (raw)
In-Reply-To: <26697.1156945365@sss.pgh.pa.us>
References: <44F5753F.9080409@tauceti.net>
	<26697.1156945365@sss.pgh.pa.us>

Hi Tom,

thanks for your answer.
>> pg_dump: schema with OID 16396 does not exist
>
> I assume you don't see that OID in "select oid,nspname from pg_namespace"?
>
Yes, that's right.
> Look through the system catalogs to find the object(s) that claim to be
> in that namespace, and then tell us what they are and their history.
>
> select * from pg_type where typnamespace = 16396
>
> and likewise for pg_class.relnamespace, pg_operator.oprnamespace,
> pg_conversion.connamespace, pg_opclass.opcnamespace,
> pg_aggregate.aggnamespace, pg_proc.pronamespace.
>
Found it in pg_conversion:

mps_dev=#  select * from pg_conversion where connamespace = 16396;
       conname       | connamespace | conowner | conforencoding | 
contoencoding |      conproc      | condefault
---------------------+--------------+----------+----------------+---------------+-------------------+------------
 iso_8859_1_to_utf_8 |        16396 |    16389 |              8 
|             6 | iso8859_1_to_utf8 | t
(1 row)

The owner is the user cms_mps_d_p.

[postgres@host1202~]$ psql -d mps_dev -U cms_mps_d_p

mps_dev=> \dc
                                 List of conversions
   Schema    |            Name             |    Source     |  
Destination  | Default?
-------------+-----------------------------+---------------+---------------+----------
 cms_mps_d_p | iso_8859_1_to_utf_8         | LATIN1        | 
UTF8          | yes
...

Well I remember that our developers created such a function but they 
don't need it anymore.
Could I simply drop it to solve the problem with pg_dump? But anyway... 
How can this be
avoided and why does such a sitiation occur? I just dropped the 
database, created a new one
(with the same name) and started a restore (completed with no errors). 
This procedure seems
not so unusual to me ;-) And it happens the second time to me.

Thanks,
Robert




view thread (5+ messages)  latest in thread

Message-ID: <44F69D08.80308@tauceti.net>
Permalink:  ../44F69D08.80308@tauceti.net/
Also on:    postgresql.org/message-id/44F69D08.80308@tauceti.net

 · 

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-admin@postgresql.org
  Cc: postgres@tauceti.net
  Subject: Re: pg_dump: schema with OID 16396 does not exist
  In-Reply-To: <44F69D08.80308@tauceti.net>
  References: <44F5753F.9080409@tauceti.net> <26697.1156945365@sss.pgh.pa.us> <44F69D08.80308@tauceti.net>

* 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