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

From Bruce Momjian
Subject Re: [PATCHES] BUG #2221: Bad delimiters allowed in COPY ...
Date
Msg-id 200601312224.k0VMOWc18222@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] BUG #2221: Bad delimiters allowed in COPY ...  (David Fetter <david@fetter.org>)
List pgsql-bugs
> Is  ERRCODE_FEATURE_NOT_SUPPORTED the right errcode? This isn't a
> missing feature; we are performing a sanity check here. We can
> reasonably expect never to support CR, LF or \ as the text
> delimiter.

I guess that depends on whether we ever plan to allow people to set
the output record separator to something other than CR?LF.

> Maybe ERRCODE_INVALID_PARAMETER_VALUE ? Or maybe we need a new one.

Agreed.  Right now it is invalid and there are no plans to support other
values for end-of-line.  I will make the change when the patch is
applied.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #2226: Can't delete elements from Enterprise Architect