From: Bodor Andras <bodri.mh3@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: binary patch problems
Date: Mon, 19 Sep 2011 12:11:41 +0200
Message-ID: <4E77155D.8050200@gmail.com> (raw)
In-Reply-To: <CADK3HHKqdj0WOBRVjZCL3o+ss5gxYA4QBC47KeNMBOhM4mCXoQ@mail.gmail.com>
References: <4E4ADB2A.5040902@gmail.com>
<4E53FE39.40501@gmail.com>
<4E6FA3DA.5090805@gmail.com>
<CADK3HHKqdj0WOBRVjZCL3o+ss5gxYA4QBC47KeNMBOhM4mCXoQ@mail.gmail.com>
Why don't you set prepareThreshold to 0 for your test cases?
In this case parameter passing starts immediately for the
prepared statement, and ForceBinaryTransfers can be dropped.
Andras
> Thank you for the thorough analysis. Now we need to decide what to do
> with the ForceBinaryTransfers testing/debugging aid.
>
> It was originally added to ensure that while running the unit tests
> as much as possible of the code paths would exercise the binary > > >
> transfer
> code. Normally binary transfers would only be activated after few
> round-trips to the backend with the same prepared statement - which
> basically never happens in unit tests.
>
> We have at least three options:
> 1) drop the ForceBinaryTransfers
> - it has helpped debug the binary transfer to a working state
> - it is no longer that useful
> 2) leave it as is
> - just add the hack to the one failing test to make it not fail
> - it is still useful to run the test suite to verify functionality
> stays correct with binary transfers
> 3) fix it
> - less worries in the future and if some end user finds the
> undocumented feature they won't get bitten by it
>
> -Mikko
>
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: bodri.mh3@gmail.com
Subject: Re: binary patch problems
In-Reply-To: <4E77155D.8050200@gmail.com>
References: <4E4ADB2A.5040902@gmail.com> <4E53FE39.40501@gmail.com> <4E6FA3DA.5090805@gmail.com> <CADK3HHKqdj0WOBRVjZCL3o+ss5gxYA4QBC47KeNMBOhM4mCXoQ@mail.gmail.com> <4E77155D.8050200@gmail.com>
* 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