Re: copymanager question - Mailing list pgsql-general

From swaroop
Subject Re: copymanager question
Date
Msg-id 1409653202339-5817334.post@n5.nabble.com
Whole thread Raw
In response to Re: copymanager question  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: copymanager question
Re: copymanager question
List pgsql-general
one more - i also need to insert useragent strings which have all sorts of
characters in them eg
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML,
like Gecko) Chrome/0.2.149.29 Safari/525.13

Here there is a comma which causes the copy to fail. Other words do not have
comma in them.

Can you please point me to the correct way to escape this ?

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)



--
View this message in context: http://postgresql.1045698.n5.nabble.com/copymanager-question-tp5817197p5817334.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: swaroop
Date:
Subject: Re: copymanager question
Next
From: Adrian Klaver
Date:
Subject: Re: copymanager question