From: Kris Jurka <books@ejurka.com>
To: Bodor Andras <bodri.mh3@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: binary patch problems
Date: Mon, 19 Sep 2011 14:35:22 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1109191427540.603@leary.csoft.net> (raw)
In-Reply-To: <4E7753F7.9090903@gmail.com>
References: <4E4ADB2A.5040902@gmail.com>
<4E53FE39.40501@gmail.com>
<4E6FA3DA.5090805@gmail.com>
<CADK3HHKqdj0WOBRVjZCL3o+ss5gxYA4QBC47KeNMBOhM4mCXoQ@mail.gmail.com>
<4E77155D.8050200@gmail.com>
<4E7753F7.9090903@gmail.com>
On Mon, 19 Sep 2011, Bodor Andras wrote:
> For the ForceBinaryTransfers I vote for dropping it, as
> it adds unnecessary complications (and new bugs) to the
> code.
ForceBinaryTransfers doesn't just make the driver use a named protocol
level statement, so it isn't an equivalent substitution to recommend
adjusting prepareTreshold. The key to binary transfer is knowing what
types will be returned so you know if you can handle them as binary and
therefore whether to request them as binary or not. So the
ForceBinaryTransfers hack is for testing and does a half execution to get
the returned data types and then does a real execution with the true data
types.
So we need this to make use of our existing test suite because it doesn't
normally do multiple execution which would let us naturally discover the
type information. Whether it should be exposed to users or not is
debatable, but we need it internally.
Unless of course you are willing to add an extra network roundtrip to
every query execution to pickup the type information before execution.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, bodri.mh3@gmail.com
Subject: Re: binary patch problems
In-Reply-To: <alpine.BSO.2.00.1109191427540.603@leary.csoft.net>
References: <4E4ADB2A.5040902@gmail.com> <4E53FE39.40501@gmail.com> <4E6FA3DA.5090805@gmail.com> <CADK3HHKqdj0WOBRVjZCL3o+ss5gxYA4QBC47KeNMBOhM4mCXoQ@mail.gmail.com> <4E77155D.8050200@gmail.com> <4E7753F7.9090903@gmail.com> <alpine.BSO.2.00.1109191427540.603@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox