Muito obrigado Oswaldo.  Funcionou.

Atenciosamente,
  Luís

2010/6/14 Osvaldo Kussama <osvaldo.kuss...@gmail.com>

> Em 14 de junho de 2010 16:03, Luís Ribeiro <lavribe...@gmail.com>
> escreveu:
> > Pessoal,
> >   mais um vez venho solicitar o auxílio de vocês na tentativa de
> solucionar
> > um erro durante a execução do copy.  Quando consta algum valor "null" no
> > arquivo para um campo timestamp na tabela aparece o seguinte erro:
> >
> > ERRO:  sintaxe de entrada é inválida para tipo timestamp: "null"
> > CONTEXT:  COPY tblarea_curso, linha 1, coluna data: "null"
> >
> > ********** Erro **********
> >
> >
> > SQL state: 22007
> > Contexto: COPY tblarea_curso, linha 1, coluna data: "null"
> >
> > Também tentei alterar o valor "null" para vazio diretamente no arquivo,
> mas
> > o erro persistiu com a diferença na mensagem de "null" para "".
> >
>
>
> Do manual:
> "null string
>    The string that represents a null value. The default is \N
> (backslash-N) in text mode, and an unquoted empty string in CSV mode."
> http://www.postgresql.org/docs/current/interactive/sql-copy.html
>
> Osvaldo
> _______________________________________________
> 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