Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1BJOYE92178 for ; Mon, 11 Feb 2002 14:24:41 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g1BJOJf12611; Mon, 11 Feb 2002 14:24:19 -0500 (EST) To: Bruce Momjian cc: Simone Tellini , pgsql-admin@postgresql.org Subject: Re: restore whoes In-reply-to: <200202111917.g1BJHsi03274@candle.pha.pa.us> References: <200202111917.g1BJHsi03274@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Mon, 11 Feb 2002 14:17:54 -0500" Date: Mon, 11 Feb 2002 14:24:18 -0500 Message-ID: <12608.1013455458@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200202/130 X-Sequence-Number: 3288 Bruce Momjian writes: > Well, if the COPY fails on the last value of the first row, and that > value has a trailing \r, we can be pretty sure. In the examples given, the error didn't show up till later rows, in fields where there was no \r anywhere. > I don't see how your > solution make it fool-proof, except by requiring every COPY file, old > and new, and created, to have CR as \r. There *is no* foolproof solution with the current data representation (and your idea of throwing untrustworthy error messages is certainly not foolproof). What we need to do is migrate to a new data representation. Fortunately, it's nearly there already, since \ r and \ n sequences are already supported by COPY IN. regards, tom lane