Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1B62eE41256 for ; Mon, 11 Feb 2002 01:02:41 -0500 (EST) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g1B62Tj07757; Mon, 11 Feb 2002 01:02:29 -0500 (EST) From: Bruce Momjian Message-Id: <200202110602.g1B62Tj07757@candle.pha.pa.us> Subject: Re: restore whoes In-Reply-To: <1936.1013405474@sss.pgh.pa.us> To: Tom Lane Date: Mon, 11 Feb 2002 01:02:29 -0500 (EST) CC: Simone Tellini , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL96 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200202/98 X-Sequence-Number: 3257 Tom Lane wrote: > Bruce Momjian writes: > > I think we should throw a very specific error from COPY when it sees \r > > ending a line. Comments? > > Certainly *not*, as that is a valid data pattern. At present. > See my proposal on pghackers for fixing this properly. I was thinking of throwing a specific error when copy fails _and_ when the line ends with a \r, rather than a generic COPY failure message --- not sure how to do that, though. I don't think I like the carriage-return -> \r solution anymore because that would require people creating COPY files by hand, which I am sure many do, to also escape carriage returns, which seems too MS-ish for me. We would be hoisting stupid operating system principles on COPY file creators. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026