Pessoal,

acho que coloquei no tópico errado esse assunto, então aqui vai,

vejo que são vários erros "randômicos"

ERROR:  could not access file "$libdir/liblwgeom.dll": No such file or
directory
ERROR:  function public.estimated_extent(text, text, text) does not exist
ERROR:  could not access file "$libdir/liblwgeom.dll": No such file or
directory
ERROR:  function public.estimated_extent(text, text) does not exist
ERROR:  type box3d does not exist
ERROR:  type "box3d" does not exist
ERROR:  type box2d does not exist
ERROR:  type "box2d" does not exist
ERROR:  type geometry does not exist
ERROR:  type "geometry" does not exist
ERROR:  type histogram2d does not exist
ERROR:  type "histogram2d" does not exist
ERROR:  type geometry does not exist
ERROR:  type "geometry" does not exist
ERROR:  type chip does not exist
ERROR:  type "chip" does not exist
ERROR:  type "box2d" does not exist
ERROR:  function public.find_extent(text, text, text) does not exist
ERROR:  type "box2d" does not exist
ERROR:  function public.find_extent(text, text) does not exist

Estou fazendo o dump de maneira errada?

Desculpem minha ignorância sobre o assunto, porém dei uma boa procurada no
google sobre e não encontrei nada.

Estou migrando um banco do 8.2.4 para 8.3.3.

Obrigado,

Lucas.

---------- Forwarded message ----------
From: Lucas Mocellin <[EMAIL PROTECTED]>
Date: 2008/8/14
Subject: Re: [pgbr-geral] Como configurar o PostgreSQL 8.3 para pt_BR?
To: Comunidade PostgreSQL Brasileira <pgbr-geral@listas.postgresql.org.br>


Consegui criar o banco em LATIN1,

porém agora a briga é para importar os dados, vejam:

ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
ERROR:  relation "cidade" does not exist
....


pg_restore: [archiver (db)] could not execute query: ERROR:  type
"public.chip" does not exist
    Command was: ALTER TYPE public.chip OWNER TO postgres;
pg_restore: creating FUNCTION geometry_analyze(internal)
pg_restore: [archiver (db)] Error from TOC entry 25; 1255 16833 FUNCTION
geometry_analyze(internal) postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  could not
access file "$libdir/liblwgeom.dll": No such file or directory
    Command was: CREATE FUNCTION geometry_analyze(internal) RETURNS boolean
    AS '$libdir/liblwgeom.dll', 'LWGEOM_analyze'
    LANGUAGE c S...
pg_restore: [archiver (db)] could not execute query: ERROR:  function
public.geometry_analyze(internal) does not exist
    Command was: ALTER FUNCTION public.geometry_analyze(internal) OWNER TO
postgres;
pg_restore: creating FUNCTION geometry_in(cstring)
pg_restore: [archiver (db)] Error from TOC entry 26; 1255 16835 FUNCTION
geometry_in(cstring) postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  could not
access file "$libdir/liblwgeom.dll": No such file or directory
    Command was: CREATE FUNCTION geometry_in(cstring) RETURNS geometry
    AS '$libdir/liblwgeom.dll', 'LWGEOM_in'
    LANGUAGE c IMMUTABLE S...
pg_restore: [archiver (db)] could not execute query: ERROR:  function
public.geometry_in(cstring) does not exist
    Command was: ALTER FUNCTION public.geometry_in(cstring) OWNER TO
postgres;
pg_restore: creating FUNCTION geometry_out(geometry)
pg_restore: [archiver (db)] Error from TOC entry 27; 1255 16836 FUNCTION
geometry_out(geometry) postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  type geometry
does not exist
    Command was: CREATE FUNCTION geometry_out(geometry) RETURNS cstring
    AS '$libdir/liblwgeom.dll', 'LWGEOM_out'
    LANGUAGE c IMMUTABLE...

Estou migrando o banco com:
1 - pg_dump -i -h x.x.x.x -F c -v -f /tmp/web.sql web
2 - crio o banco
3 - pg_restore -c -v -d cotesa_web /tmp/cotesa_web.sql

Pesquisei sobre, mas não encontrei nada muito bom, algo sobre um bug na
"ordenação" dos comandos gerados pelo DUMP, porém sem soluções a nao ser
reordenar manualmente (???).

Alguém já passou por isso?

Obrigado,

Lucas.


2008/8/14 Lucas Mocellin <[EMAIL PROTECTED]>

Obrigado pessoal pelas respostas,
>
> vou dar uma boa lida nesses documentos e depois posto aqui o resultado.
>
> Obrigado mesmo!
>
> Lucas.
>
> 2008/8/13 Roberto Mello <[EMAIL PROTECTED]>
>
> 2008/8/13 Lucas Mocellin <[EMAIL PROTECTED]>:
>> >
>> > Como é uma migração de um banco que o pessoal usa windows, não estou
>> > interessado em converter o banco ou algo do gênero, gostaria de deixar
>> no
>> > mesmo encoding.
>> >
>> > Como posso criar isso?
>>
>> Recrie o cluster, com o PG desligado:
>>
>> initdb -E LATIN1 -D caminho\para\seu\cluster
>>
>> > Preciso manter o UTF-8 como locale do sistema, porém meu "locale -a" não
>> tem
>> > o LATIN1.
>>
>> Qual distribuicao? No Debian (ou Ubuntu) faca um `dpkg-reconfigure
>> locales`
>>
>> > Desculpe-me pela repetição, mas sinto-me um pouco perdido quando se fala
>> de
>> > locales, encodings, etc..
>>
>>
>> http://blog.divisiblebyfour.org/2008/03/postgresql-e-codificaes-postgresql-and.html
>>
>> Roberto
>>
>> --
>> http://blog.divisiblebyfour.org/
>> _______________________________________________
>> pgbr-geral mailing list
>> pgbr-geral@listas.postgresql.org.br
>> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>>
>
>
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a