copymanager question

From: swaroop <swaroop(dot)belur(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: copymanager question
Date: 2014-09-01 15:24:45
Message-ID: 1409585085073-5817197.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello all

I am using cm instead of preparedstmts for faster inserts . But have a
question on inserting
values which have quotes in them (maybe single or double). Using
preparedstmts, we know
its safe to do so by calling setString. Is it possible to do the same here
as i do not want
to blindly single quote a string value in copyin.

Basically i am looking for the same robustness of preparedstmt(at)setString

Can i use functions like quote_literal ? Any help is very much appreciated.

thanks

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2014-09-01 15:39:48 Re: Expected behaviour of \d in regexp with exponent numbers ?
Previous Message Arnaud Lesauvage 2014-09-01 14:05:43 Re: Expected behaviour of \d in regexp with exponent numbers ?