Re: multiline CSV fields

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: multiline CSV fields
Дата
Msg-id 41942903.4080208@dunslane.net
обсуждение исходный текст
Ответ на Re: multiline CSV fields  (Patrick B Kelly <pbk@patrickbkelly.org>)
Ответы Re: multiline CSV fields  (Patrick B Kelly <pbk@patrickbkelly.org>)
Список pgsql-hackers

Patrick B Kelly wrote:

>
>
>
> My suggestion is to simply have CopyReadLine recognize these two 
> states (in-field and out-of-field) and execute the current logic only 
> while in the second state. It would not be too hard but as you 
> mentioned it is non-trivial.
>
>
>

We don't know what state we expect the end of line to be in until after 
we have actually read the line. To know how to treat the end of line on 
your scheme we would have to parse as we go rather than after reading 
the line as now. Changing this would be not only be non-trivial but 
significantly invasive to the code.

cheers

andrew


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

Предыдущее
От: Patrick B Kelly
Дата:
Сообщение: Re: multiline CSV fields
Следующее
От: Patrick B Kelly
Дата:
Сообщение: Re: multiline CSV fields