Re: copymanager question

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: copymanager question
Дата
Msg-id 54082515.9040409@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: copymanager question  (swaroop <swaroop.belur@gmail.com>)
Список pgsql-general
On 09/02/2014 06:20 PM, swaroop wrote:
> To summarize - how do i replace the input strings in java (data is streamed
> in and i do a copy to postgres)
> so that CSV copy does not fail.
> a. words with comma
> b. words with double quotes in them
> c. words with \ (backslash)

Don't write the escaping yourself.

Use a CSV library that can consume your input data and emit correct CSV.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Giuseppe Broccolo
Дата:
Сообщение: Re: GiST index question
Следующее
От: Vinayak
Дата:
Сообщение: Re: || operator