From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simone Tellini <tellini@areabusiness.it>
Cc: pgsql-admin@postgresql.org
Subject: Re: restore whoes
Date: Mon, 11 Feb 2002 01:02:29 -0500 (EST)
Message-ID: <200202110602.g1B62Tj07757@candle.pha.pa.us> (raw)
In-Reply-To: <1936.1013405474@sss.pgh.pa.us>
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, tellini@areabusiness.it
Subject: Re: restore whoes
In-Reply-To: <200202110602.g1B62Tj07757@candle.pha.pa.us>
References: <1936.1013405474@sss.pgh.pa.us> <200202110602.g1B62Tj07757@candle.pha.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