Re: Telecom(Colombia) - Error postgresql - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: Telecom(Colombia) - Error postgresql
Date
Msg-id 20070912224821.GF6627@alvh.no-ip.org
Whole thread Raw
In response to Telecom(Colombia) - Error postgresql  ("DIEGO ARMANDO LOPEZ PINILLA" <diego.lopez@telecom.net.co>)
List pgsql-admin
DIEGO ARMANDO LOPEZ PINILLA wrote:

> De pronto me podrían colaborar con la solución de este inconveniente:
>
> postgres@lbogap02:~> pg_dump tollticketing > prueba.backup
>
> pg_dump: schema with OID 128157747 does not exist

El problema es que hay un catalogo que hace referencia a ese schema, que
no existe.  La solucion pasa por saber cual es ese catalogo.  No hay
muchos catalogos que tengan un namespace; prueba lo siguiente:

select attrelid::regclass, attname from pg_attribute join pg_class on
(oid = pg_attribute.attrelid) where attname like '%namespace' and
relkind = 'r';

Eso te va a dar un listado de catalogos y el nombre de la columna.  A
continuacion, para cada nombre del listado, haz

select * from pg_type where typnamespace = '128157747';

(reemplaza nombre de catalogo y columna segun corresponda).

Cuando encuentres uno que tiene ese valor, muestralo aca y vemos que se
hace con el.



--
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Before you were born your parents weren't as boring as they are now. They
got that way paying your bills, cleaning up your room and listening to you
tell them how idealistic you are."  -- Charles J. Sykes' advice to teenagers

pgsql-admin by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: automatically detecting long timed locks
Next
From: "Yingqi Tang"
Date:
Subject: "Failed to connect to the database" error