Re: pgsql: Binary data support improvement
On 02/07/2013 12:52, Yasuo Ohgaki wrote:
> Hi Matteo,
>
> 2013/7/2 Matteo Beccati <[email protected] <mailto:[email protected]>>
>>
>> > The API is not for ease of use, but for better performance as it
> eliminate
>> > needless hex conversions on both server and client side.
>>
>> What I meant is that we might have that speed improvements for free in
>> PDO when bytea is used as a parameter (i.e. most likely insert/updates).
>> With no visible change for the user and full backwards compatibility.
>
>
> libpq's query API only has flag that returns all result as binary or text.
I'm talking about parameters, not results. The speedup would be only for
inserts, not selects (which would require something that's not available
in libpq).
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/
Thread (10 messages)