Rodrigo;

 

Já instalei este módulo, mas acontece os problemas descritos ai no e-mail.

 

Alan Roberto Ferné

Administrador de Banco de Dados

Tel.: 4176-8845

E-mail: [EMAIL PROTECTED]


De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Rodrigo Hjort
Enviada em: terça-feira, 14 de março de 2006 10:15
Para: [email protected]
Assunto: Re: [PostgreSQL-Brasil] ENC: PG_RESTORE: INUMEROS PROBLEMAS

 

Instala o módulo "cube" do contrib antes de fazer a restauração.

2006/3/13, Alan Roberto Ferne <[EMAIL PROTECTED] >:

Poxa, será que ninguém pode me ajudar??? É meio urgente....

 

Alan Roberto Ferné

Administrador de Banco de Dados

Tel.: 4176-8845

E-mail: [EMAIL PROTECTED]


De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Em nome de Alan Roberto Ferne
Enviada em: segunda-feira, 13 de março de 2006 12:34
Para: [email protected]
Assunto: [PostgreSQL-Brasil] PG_RESTORE: INUMEROS PROBLEMAS
Prioridade: Alta

 

Pessoal

 

Estou tendo inúmeros problemas para restaurar uma base com blobs através do pg_restore.

 

Primeiro, o pg_restore indicou que alguns módulos do contrib não estavam instalados (dblink, dbsize, earthdistance e cube). Pois bem, instalei estes módulos e quando vou emitir o comando: pg_restore –d tgs /home/corp.tar ele chia dizendo que a tal função cube não existe, conforme mensagens abaixo:

 

NOTICE:  type "cube" is not yet defined

DETAIL:  Creating a shell type definition.

pg_restore: NOTICE:  type "cube" is not yet defined

DETAIL:  Creating a shell type definition.

NOTICE:  argument type cube is only a shell

pg_restore: NOTICE:  argument type cube is only a shell

ERROR:  function cube(text) does not exist

pg_restore: [archiver (db)] could not execute query: ERROR:  function cube(text) does not exist

 

Pois bem, verificando no diretório /share/contrib., existe um arquivo SQL chamado cube onde tem várias definições sobre o cube, inclusive da tal função.

 

Ai, eu crio o banco de dados e em seguida, rodo este arquivo. Finalizado este processo, vou emitir o pg_restore com os mesmos argumentos acima. Ai ele reclama que a função cube já existe...

 

NOTICE:  type "cube" is not yet defined

DETAIL:  Creating a shell type definition.

pg_restore: NOTICE:  type "cube" is not yet defined

DETAIL:  Creating a shell type definition.

NOTICE:  argument type cube is only a shell

pg_restore: NOTICE:  argument type cube is only a shell

ERROR:  function cube(text) already exists

pg_restore: [archiver (db)] could not execute query: ERROR:  function cube(text) already exists

 

Estou literalmente em um mato sem cachorro, por isso, peço encarecidamente a ajuda de vocês para resolver este problema. Será que estou fazendo algo errado??
 


_______________________________________________
Grupo de Usuários do PostgreSQL no Brasil
http://www.postgresql.org.br



--
Atenciosamente,

Rodrigo Hjort
GTI - Projeto PostgreSQL
CELEPAR - Cia de Informática do Paraná
http://www.pr.gov.br

_______________________________________________
Grupo de Usuários do PostgreSQL no Brasil
http://www.postgresql.org.br

Responder a