From: Josh Berkus <josh@agliodbs.com>
To: 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 09:51:19 -0700
Message-ID: <web-1385663@davinci.ethosmedia.com> (raw)
In-Reply-To: <26746.1019837496@sss.pgh.pa.us>
Tom,
> 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.
Yes, you're right. Apparently I have /r/n newlines, plus a ZL string
in the last field indicating Null. I know that there's a command line
utility to convert DOS newlines into UNIX newlines; could anyone give
me a name?
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, tgl@sss.pgh.pa.us
Subject: Re: Wierd error for COPY command
In-Reply-To: <web-1385663@davinci.ethosmedia.com>
* 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