Re: Undocumented feature costs a lot of performance in COPY IN
| От | Tom Lane |
|---|---|
| Тема | Re: Undocumented feature costs a lot of performance in COPY IN |
| Дата | |
| Msg-id | 2993.1007496898@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Undocumented feature costs a lot of performance in COPY (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Undocumented feature costs a lot of performance in COPY
Re: Undocumented feature costs a lot of performance in |
| Список | pgsql-hackers |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Yes, please fix it. In fact, I think we should throw an error if more
> than one character is specified as a delimiter. Saying we ignore
> multiple characters in the documentation is not enough when we silently
> ignore them in the code.
Well, it'd be an easy enough addition:
if (strlen(delim) != 1) elog(ERROR, "COPY delimiter must be a single character");
This isn't multibyte-aware, but then neither is the implementation;
delimiters that are multibyte characters won't work at the moment.
Any comments out there?
regards, tom lane
В списке pgsql-hackers по дате отправления: