Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (Postfix) with ESMTP id 8663B474E4E for ; Fri, 26 Apr 2002 12:51:14 -0400 (EDT) Received: from [209.122.114.82] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.5.9) with HTTP id 1385663; Fri, 26 Apr 2002 09:51:19 -0700 From: "Josh Berkus" Subject: Re: Wierd error for COPY command To: Tom Lane , "Josh Berkus" Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Fri, 26 Apr 2002 09:51:19 -0700 Message-ID: In-Reply-To: <26746.1019837496@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200204/329 X-Sequence-Number: 7593 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