Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ... - Mailing list pgsql-patches

From Tom Lane
Subject Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...
Date
Msg-id 20065.1170610352@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [BUGS] BUG #2221: Bad delimiters allowed in COPY ...  (Bruce Momjian <bruce@momjian.us>)
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Attached is a patch that errors for \r and \n in delimiter and
> null.

I am not convinced that this is a bug.  Can you prove that there is no
use-case for asking COPY to emit data in this style?  Sure, COPY itself
couldn't read it, but people sometimes feed COPY output to other
programs...

            regards, tom lane

pgsql-patches by date:

Previous
From: David Fetter
Date:
Subject: Re: [HACKERS] writing new regexp functions
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] \copy (query) delimiter syntax error