salto de linea en copy problema

From: "Johnny Verdugo V(dot)" <jverdugo(at)gmail(dot)com>
To: "'postgre sql'" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: salto de linea en copy problema
Date: 2008-01-31 20:11:20
Message-ID: 008001c86445$748407f0$5d8c17d0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola listeros

Aquí tengo un problema no se porque ocurre

Un soft X exporta un archivo txt delimitado por tab -à ‘\t’

Hago el copy hacia la base de datos y me arroja esto

COPY swd_dt_scanner_gsm FROM '/home/johnny/Scanneeer.txt' DELIMITERS '\t'
null '' CSV header escape as '\n';

WARNING: nonstandard use of escape in a string literal

LINEA 1: ...dt_scanner_gsm FROM '/home/johnny/Scanneeer.txt ' DELIMITERS
'\t' null ...

^

HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.

WARNING: nonstandard use of escape in a string literal

LINEA 1: ...eer.txt' DELIMITERS '\t' null '' CSV header escape as '\t';

^

HINT: Use the escape string syntax for escapes, e.g., E'\r\n'.

ERROR: extra data after last expected column

Estado SQL:22P04

Contexto:COPY swd_dt_scanner_gsm, line 5: "2008-1-13 16:55:52.064 153
39 -92.69999694824219 -38.71970367431641
-72.56165313720703 "

Sera porque tengo de fin de línea una tabulación?

Puse también probando el escape con tabulación pero nada

Que podría ser

Tengo postgres 8.2.6 en Linux

Saludos

johnny

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Luis Alberto Gomez Parada 2008-01-31 20:31:47 Re: Conexion Postgis - php/mapscript en Debian
Previous Message Richard Clark 2008-01-31 19:15:44 Re: LIBPQ EN WINDOWS VISTA