Skip site navigation (1) Skip section navigation (2)

Re: Telecom(Colombia) - Error postgresql

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: DIEGO ARMANDO LOPEZ PINILLA <diego(dot)lopez(at)telecom(dot)net(dot)co>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Telecom(Colombia) - Error postgresql
Date: 2007-09-12 22:48:21
Message-ID: 20070912224821.GF6627@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-admin
DIEGO ARMANDO LOPEZ PINILLA wrote:

> De pronto me podrían colaborar con la solución de este inconveniente:
> 
> postgres(at)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

In response to

pgsql-admin by date

Next:From: Yingqi TangDate: 2007-09-12 23:56:29
Subject: "Failed to connect to the database" error
Previous:From: Scott MarloweDate: 2007-09-12 22:02:56
Subject: Re: automatically detecting long timed locks

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group