Re: Support UTF-8 files with BOM in COPY FROM

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Support UTF-8 files with BOM in COPY FROM
Дата
Msg-id 22884.1317133923@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Support UTF-8 files with BOM in COPY FROM  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Alternative consideration: We could allow this in CSV format if we made
> users quote the first value if it starts with a BOM.  This might be a
> reasonable way to get MS compatibility.

I don't think we can get away with a retroactive restriction on the
contents of data files.

If we're going to do this at all, I still think an explicit BOM option
for COPY, to either eat (and require) a BOM on input or emit a BOM on
output, would be the sanest way.  None of the "automatic" approaches
seem safe to me.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Postgresql parser
Следующее
От: Royce Ausburn
Дата:
Сообщение: [PATCH] Addition of some trivial auto vacuum logging