Re: Telecom(Colombia) - Error postgresql

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Telecom(Colombia) - Error postgresql
Дата
Msg-id 20070912224821.GF6627@alvh.no-ip.org
обсуждение исходный текст
Ответ на Telecom(Colombia) - Error postgresql  ("DIEGO ARMANDO LOPEZ PINILLA" <diego.lopez@telecom.net.co>)
Список 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 по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: automatically detecting long timed locks
Следующее
От: "Yingqi Tang"
Дата:
Сообщение: "Failed to connect to the database" error