Tomasz Ostrowski <[EMAIL PROTECTED]> writes:
> Now for inserting data to a bytea we need 5*data_size in a buffer for
> escaped data representation. 6*data_size if we do PQescapeByteaConn
> in one chunk.

If you send the value as an out-of-line binary parameter then you don't
need any of that.  See PQexecParams.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

Reply via email to