From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Wierd error for COPY command
Date: Fri, 26 Apr 2002 12:11:36 -0400
Message-ID: <26746.1019837496@sss.pgh.pa.us> (raw)
In-Reply-To: <web-1385572@davinci.ethosmedia.com>
References: <web-1385572@davinci.ethosmedia.com>
"Josh Berkus" <josh@agliodbs.com> writes:
> I'm getting the following error:
> jwnet=# copy elbs_udf from '/home/jwnet/testtransfer/udf.txt'
> jwnet-# using delimiters '|' with null as '';
> ": can't parse "ne 1, pg_atoi: error in "1
> jwnet=#
I'll bet your file contains \r\n newlines not \n. The weird look
of the error comes from copy echoing the \r as part of the "data
item" it's unhappy about. Try examining the log entry using od -c
if you want to see exactly what's there.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
Subject: Re: Wierd error for COPY command
In-Reply-To: <26746.1019837496@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox