Re: [pgbr-geral] relation does not exist

2008-08-18 Por tôpico Luigi Castro Cardeles
Olá,


Vc está dando o restore entre versão distindas do PostGIS?
da 1.3.2 pra 1.3.3?
algumas funções são alteradas, vc deve rodar antes o arquivo
lwpostgis_upgrade.sql.

vc deu o dump do bando com -Fc?
[]'s

2008/8/18 Ribamar Sousa <[EMAIL PROTECTED]>

>
>
> 2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>
>
>> isso ja está feito.
>>
>> pode ver que a primeira notificacao eh que a linguagem "ja esta
>> instalada".
>>
>
> Tens razaão. Desculpe, foi a pressa.   É isso, ao tentar criar a linguagem
> que já está criada dispara o erro.
>
>>
>>
>> Em 18/08/08, Ribamar Sousa <[EMAIL PROTECTED]> escreveu:
>>>
>>> 2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>
>>>
 Desculpe mais uma vez, nem olhei a fundo a documentacao.

 dei uma lida e vi o procedimento de atualização, porém agora acontece o
 seguinte, eu consigo migrar tudo certinho, as tabelas são criadas
 corretamente, porém o script envia algumas mensagens de erro:

 could not access file "$libdir/liblwgeom.dll": No such file or directory

 Porém estou em um linux, no mínimo deveria dar o erro do ".so", estou
 migrando de um windows para um linux, será que no banco antigo há algum
 "resquício" dessa dll?

 ls -l /usr/lib/postgresql/8.1/lib/liblwgeom.so
 lrwxrwxrwx 1 root root 16 2008-08-15 08:51
 /usr/lib/postgresql/8.1/lib/liblwgeom.so -> liblwgeom.so.1.1

 está ai o modulo.

 entao fiz o seguinte, exportei a variavel "libdir" e criei um link do
 .dll para o .so:
 ln -s liblwgeom.so.1.1 liblwgeom.dll

 executei e agora os erros nao ocorreram, porém vieram os avisos/erros:

 createlang: language "plpgsql" is already installed in database "web"
 NOTICE:  type "histogram2d" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type histogram2d is only a shell
 NOTICE:  type "spheroid" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type spheroid is only a shell
 NOTICE:  type "geometry" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type geometry is only a shell
 NOTICE:  return type geometry is only a shell
 NOTICE:  argument type geometry is only a shell
 NOTICE:  type "box3d" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type box3d is only a shell
 NOTICE:  type "chip" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type chip is only a shell
 NOTICE:  type "box2d" is not yet defined
 DETAIL:  Creating a shell type definition.
 NOTICE:  argument type box2d is only a shell
 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
 "spatial_ref_sys_pkey" for table "spatial_ref_sys"
 NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
 "geometry_columns_pk" for table "geometry_columns"
 ERROR:  language "plpgsql" already exists
 ERROR:  function "lockrow" already exists with same argument types
 ERROR:  function "lockrow" already exists with same argument types


>>>
>>> Erro mesmo, deve ser apenas um.
>>> Crie a linguagem antes de iniciar a importação:
>>>
>>> create language plpgsql;
>>>
>>>
>>> --
>>> Ribamar FS - [EMAIL PROTECTED]
>>> http://ribafs.net
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Ribamar FS - [EMAIL PROTECTED]
> http://ribafs.net
>
> ___
> pgbr-geral mailing list
> pgbr-geral@listas.postgresql.org.br
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
>


-- 
Luigi Castro Cardeles
___
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral


Re: [pgbr-geral] relation does not exist

2008-08-18 Por tôpico Ribamar Sousa
2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>

> isso ja está feito.
>
> pode ver que a primeira notificacao eh que a linguagem "ja esta instalada".
>

Tens razaão. Desculpe, foi a pressa.   É isso, ao tentar criar a linguagem
que já está criada dispara o erro.

>
>
> Em 18/08/08, Ribamar Sousa <[EMAIL PROTECTED]> escreveu:
>>
>> 2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>
>>
>>> Desculpe mais uma vez, nem olhei a fundo a documentacao.
>>>
>>> dei uma lida e vi o procedimento de atualização, porém agora acontece o
>>> seguinte, eu consigo migrar tudo certinho, as tabelas são criadas
>>> corretamente, porém o script envia algumas mensagens de erro:
>>>
>>> could not access file "$libdir/liblwgeom.dll": No such file or directory
>>>
>>> Porém estou em um linux, no mínimo deveria dar o erro do ".so", estou
>>> migrando de um windows para um linux, será que no banco antigo há algum
>>> "resquício" dessa dll?
>>>
>>> ls -l /usr/lib/postgresql/8.1/lib/liblwgeom.so
>>> lrwxrwxrwx 1 root root 16 2008-08-15 08:51
>>> /usr/lib/postgresql/8.1/lib/liblwgeom.so -> liblwgeom.so.1.1
>>>
>>> está ai o modulo.
>>>
>>> entao fiz o seguinte, exportei a variavel "libdir" e criei um link do
>>> .dll para o .so:
>>> ln -s liblwgeom.so.1.1 liblwgeom.dll
>>>
>>> executei e agora os erros nao ocorreram, porém vieram os avisos/erros:
>>>
>>> createlang: language "plpgsql" is already installed in database "web"
>>> NOTICE:  type "histogram2d" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type histogram2d is only a shell
>>> NOTICE:  type "spheroid" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type spheroid is only a shell
>>> NOTICE:  type "geometry" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type geometry is only a shell
>>> NOTICE:  return type geometry is only a shell
>>> NOTICE:  argument type geometry is only a shell
>>> NOTICE:  type "box3d" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type box3d is only a shell
>>> NOTICE:  type "chip" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type chip is only a shell
>>> NOTICE:  type "box2d" is not yet defined
>>> DETAIL:  Creating a shell type definition.
>>> NOTICE:  argument type box2d is only a shell
>>> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
>>> "spatial_ref_sys_pkey" for table "spatial_ref_sys"
>>> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
>>> "geometry_columns_pk" for table "geometry_columns"
>>> ERROR:  language "plpgsql" already exists
>>> ERROR:  function "lockrow" already exists with same argument types
>>> ERROR:  function "lockrow" already exists with same argument types
>>>
>>>
>>
>> Erro mesmo, deve ser apenas um.
>> Crie a linguagem antes de iniciar a importação:
>>
>> create language plpgsql;
>>
>>
>> --
>> Ribamar FS - [EMAIL PROTECTED]
>> http://ribafs.net
>>
>>
>> ___
>> 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
>
>


-- 
Ribamar FS - [EMAIL PROTECTED]
http://ribafs.net
___
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral


Re: [pgbr-geral] relation does not exist

2008-08-18 Por tôpico Lucas Mocellin
isso ja está feito.

pode ver que a primeira notificacao eh que a linguagem "ja esta instalada".


Em 18/08/08, Ribamar Sousa <[EMAIL PROTECTED]> escreveu:
>
> 2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>
>
>> Desculpe mais uma vez, nem olhei a fundo a documentacao.
>>
>> dei uma lida e vi o procedimento de atualização, porém agora acontece o
>> seguinte, eu consigo migrar tudo certinho, as tabelas são criadas
>> corretamente, porém o script envia algumas mensagens de erro:
>>
>> could not access file "$libdir/liblwgeom.dll": No such file or directory
>>
>> Porém estou em um linux, no mínimo deveria dar o erro do ".so", estou
>> migrando de um windows para um linux, será que no banco antigo há algum
>> "resquício" dessa dll?
>>
>> ls -l /usr/lib/postgresql/8.1/lib/liblwgeom.so
>> lrwxrwxrwx 1 root root 16 2008-08-15 08:51
>> /usr/lib/postgresql/8.1/lib/liblwgeom.so -> liblwgeom.so.1.1
>>
>> está ai o modulo.
>>
>> entao fiz o seguinte, exportei a variavel "libdir" e criei um link do .dll
>> para o .so:
>> ln -s liblwgeom.so.1.1 liblwgeom.dll
>>
>> executei e agora os erros nao ocorreram, porém vieram os avisos/erros:
>>
>> createlang: language "plpgsql" is already installed in database "web"
>> NOTICE:  type "histogram2d" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type histogram2d is only a shell
>> NOTICE:  type "spheroid" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type spheroid is only a shell
>> NOTICE:  type "geometry" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type geometry is only a shell
>> NOTICE:  return type geometry is only a shell
>> NOTICE:  argument type geometry is only a shell
>> NOTICE:  type "box3d" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type box3d is only a shell
>> NOTICE:  type "chip" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type chip is only a shell
>> NOTICE:  type "box2d" is not yet defined
>> DETAIL:  Creating a shell type definition.
>> NOTICE:  argument type box2d is only a shell
>> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
>> "spatial_ref_sys_pkey" for table "spatial_ref_sys"
>> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
>> "geometry_columns_pk" for table "geometry_columns"
>> ERROR:  language "plpgsql" already exists
>> ERROR:  function "lockrow" already exists with same argument types
>> ERROR:  function "lockrow" already exists with same argument types
>>
>>
>
> Erro mesmo, deve ser apenas um.
> Crie a linguagem antes de iniciar a importação:
>
> create language plpgsql;
>
>
> --
> Ribamar FS - [EMAIL PROTECTED]
> http://ribafs.net
>
>
> ___
> 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


Re: [pgbr-geral] Como configurar o PostgreSQL 8.3 para pt_BR?

2008-08-18 Por tôpico Glauber Alex Dias Prado
Enio <[EMAIL PROTECTED]> writes:

se vc setar a váriavel LC_ALL para pt_BR.UTF8 todos os programas q
tiverem tradução e dependerem dessa váriavel vão ser traduzidos, isso
vale pros novos q vc criar, agora essa migração vc vai ter q criar o
locale na máquina(varia de distro pra distro, aprenda como faz na sua) e
usar como o colega esplicou abaixo, se ajustar a váriavel LC_ALL os
erros por exemplo abaixo viriam em português.

> Seguinte,
>
>
> initdb -D path_do_cluster --locale=pt_BR
>
>
> espero ter ajudado
>
>
> Enio
>
>
> Em 13/08/08, Lucas Mocellin <[EMAIL PROTECTED]> escreveu:
>>
>> Pessoal,
>>
>> "revivendo" este tópico.
>>
>> li na lista e procurei em vários lugares do google,
>>
>> entendi +- o conceito locale/encoding, porém não entendi como resolver o
>> problema,
>>
>> estou migrando um DB do 8.2 para o 8.3, entao fiz um dump, e na hora de
>> criar o novo banco para restaurar os dados, ele da o mesmo erro:
>>
>> 2008-08-13 15:57:44 BRT ERROR:  encoding LATIN1 does not match server's
>> locale en_US.UTF-8
>> 2008-08-13 15:57:44 BRT DETAIL:  The server's LC_CTYPE setting requires
>> encoding UTF8.
>> 2008-08-13 15:57:44 BRT STATEMENT:  CREATE DATABASE "db_web" WITH
>> ENCODING='LATIN1'
>> 2008-08-13 15:57:44 BRT WARNING:  nonstandard use of \\ in a string literal
>> at character 137
>> 2008-08-13 15:57:44 BRT HINT:  Use the escape string syntax for
>> backslashes, e.g., E'\\'.
>>
>> 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?
>>
>> Preciso manter o UTF-8 como locale do sistema, porém meu "locale -a" não
>> tem o LATIN1.
>>
>> Desculpe-me pela repetição, mas sinto-me um pouco perdido quando se fala de
>> locales, encodings, etc..
>>
>> Obrigado,
>>
>> Lucas.
>>
>>
>> ___
>> 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


Re: [pgbr-geral] relation does not exist

2008-08-18 Por tôpico Ribamar Sousa
2008/8/18 Lucas Mocellin <[EMAIL PROTECTED]>

> Desculpe mais uma vez, nem olhei a fundo a documentacao.
>
> dei uma lida e vi o procedimento de atualização, porém agora acontece o
> seguinte, eu consigo migrar tudo certinho, as tabelas são criadas
> corretamente, porém o script envia algumas mensagens de erro:
>
> could not access file "$libdir/liblwgeom.dll": No such file or directory
>
> Porém estou em um linux, no mínimo deveria dar o erro do ".so", estou
> migrando de um windows para um linux, será que no banco antigo há algum
> "resquício" dessa dll?
>
> ls -l /usr/lib/postgresql/8.1/lib/liblwgeom.so
> lrwxrwxrwx 1 root root 16 2008-08-15 08:51
> /usr/lib/postgresql/8.1/lib/liblwgeom.so -> liblwgeom.so.1.1
>
> está ai o modulo.
>
> entao fiz o seguinte, exportei a variavel "libdir" e criei um link do .dll
> para o .so:
> ln -s liblwgeom.so.1.1 liblwgeom.dll
>
> executei e agora os erros nao ocorreram, porém vieram os avisos/erros:
>
> createlang: language "plpgsql" is already installed in database "web"
> NOTICE:  type "histogram2d" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type histogram2d is only a shell
> NOTICE:  type "spheroid" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type spheroid is only a shell
> NOTICE:  type "geometry" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type geometry is only a shell
> NOTICE:  return type geometry is only a shell
> NOTICE:  argument type geometry is only a shell
> NOTICE:  type "box3d" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type box3d is only a shell
> NOTICE:  type "chip" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type chip is only a shell
> NOTICE:  type "box2d" is not yet defined
> DETAIL:  Creating a shell type definition.
> NOTICE:  argument type box2d is only a shell
> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
> "spatial_ref_sys_pkey" for table "spatial_ref_sys"
> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
> "geometry_columns_pk" for table "geometry_columns"
> ERROR:  language "plpgsql" already exists
> ERROR:  function "lockrow" already exists with same argument types
> ERROR:  function "lockrow" already exists with same argument types
>

Erro mesmo, deve ser apenas um.
Crie a linguagem antes de iniciar a importação:

create language plpgsql;


-- 
Ribamar FS - [EMAIL PROTECTED]
http://ribafs.net
___
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral


Re: [pgbr-geral] relation does not exist

2008-08-18 Por tôpico Lucas Mocellin
Desculpe mais uma vez, nem olhei a fundo a documentacao.

dei uma lida e vi o procedimento de atualização, porém agora acontece o
seguinte, eu consigo migrar tudo certinho, as tabelas são criadas
corretamente, porém o script envia algumas mensagens de erro:

could not access file "$libdir/liblwgeom.dll": No such file or directory

Porém estou em um linux, no mínimo deveria dar o erro do ".so", estou
migrando de um windows para um linux, será que no banco antigo há algum
"resquício" dessa dll?

ls -l /usr/lib/postgresql/8.1/lib/liblwgeom.so
lrwxrwxrwx 1 root root 16 2008-08-15 08:51
/usr/lib/postgresql/8.1/lib/liblwgeom.so -> liblwgeom.so.1.1

está ai o modulo.

entao fiz o seguinte, exportei a variavel "libdir" e criei um link do .dll
para o .so:
ln -s liblwgeom.so.1.1 liblwgeom.dll

executei e agora os erros nao ocorreram, porém vieram os avisos/erros:

createlang: language "plpgsql" is already installed in database "web"
NOTICE:  type "histogram2d" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type histogram2d is only a shell
NOTICE:  type "spheroid" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type spheroid is only a shell
NOTICE:  type "geometry" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type geometry is only a shell
NOTICE:  return type geometry is only a shell
NOTICE:  argument type geometry is only a shell
NOTICE:  type "box3d" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type box3d is only a shell
NOTICE:  type "chip" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type chip is only a shell
NOTICE:  type "box2d" is not yet defined
DETAIL:  Creating a shell type definition.
NOTICE:  argument type box2d is only a shell
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"spatial_ref_sys_pkey" for table "spatial_ref_sys"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"geometry_columns_pk" for table "geometry_columns"
ERROR:  language "plpgsql" already exists
ERROR:  function "lockrow" already exists with same argument types
ERROR:  function "lockrow" already exists with same argument types


Isso é aceitável? Valeu essa bela gambia?

Obrigado,

Lucas.

2008/8/15 Luigi Castro Cardeles <[EMAIL PROTECTED]>

> Olá,
>
> no site do PostGIS tem o passo a passo de como vc instala o módulo.
> No seu caso que quer restaurar um banco, vc já leu a documentação? Existe
> um script em perl que faz isso pra vc, ele vem junto com a instalação.
> postigs_restore.pl
>
> []'s
>
>
> 2008/8/15 Roberto Mello <[EMAIL PROTECTED]>
>
> 2008/8/15 Lucas Mocellin <[EMAIL PROTECTED]>:
>> >
>> > Não foi o que aconteceu, instalei a extensao e continua dando erro:
>> >
>> > ERROR:  type "geometry" does not exist
>> > ERROR:  operator class "btree_geometry_ops" does not exist for access
>> method
>> > "btree"
>>
>> De uma olhada nas instrucoes da extensao. Ela deve vir com um README
>> ou INSTALL. Talvez voce tenha que carregar algum arquivo .sql que
>> acompanha a distribuicao da extensao, para que novos tipos e funcoes
>> sejam criados.
>>
>> Talvez isso tenha que ser feito no banco template1, para que esses
>> novos objetos sejam criados em todos os bancos subsequentes, o que
>> incluiria o banco que voce esta' restaurando.
>>
>> 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
>>
>
>
>
> --
> Luigi Castro Cardeles
>
> ___
> 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