Re: COPY for CSV documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY for CSV documentation
Дата
Msg-id 28346.1081737553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: COPY for CSV documentation  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: COPY for CSV documentation  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: COPY for CSV documentation  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> That's what I was wondering.  Is triggering CSV for multi-character
> delimiters a little too clever?  This reminds me of the use of LIMIT X,Y
> with no indication which is limit and which is offset.

I agree, this seems risky and not at all readable to someone who doesn't
remember exactly how the parameter is defined.

>> COPY a FROM stdin WITH DELIMITER "," QUOTE '"' EQUOTE '"';
> EQUOTE for embedded quote.

ESCAPE would be better no?  It's already a keyword ...

BTW, don't forget that the syntax options have to be provided in psql's
\copy as well.  Did the patch cover that?

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Russian FAQ update
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: COPY for CSV documentation