Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A4B55B5DC09 for ; Mon, 19 Sep 2011 10:53:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 76722-03 for ; Mon, 19 Sep 2011 13:53:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by mail.postgresql.org (Postfix) with ESMTP id 10A7AB5DBF2 for ; Mon, 19 Sep 2011 10:53:40 -0300 (ADT) Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.4/8.13.4) with ESMTP id p8JDrakT013680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 19 Sep 2011 16:53:36 +0300 Message-ID: <4E774962.4060904@nitorcreations.com> Date: Mon, 19 Sep 2011 16:53:38 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: binary patch problems References: <4E4ADB2A.5040902@gmail.com> <4E53FE39.40501@gmail.com> <4E6FA3DA.5090805@gmail.com> <4E77155D.8050200@gmail.com> In-Reply-To: <4E77155D.8050200@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/59 X-Sequence-Number: 22177 On 09/19/2011 01:11 PM, Bodor Andras wrote: > 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. AbstractJdbc2Statement: public boolean isUseServerPrepare() { return (preparedQuery != null && m_prepareThreshold != 0 && m_useCount + 1 >= m_prepareThreshold); } If I read the above correctly then prepareThreshold of 0 disables prepared statements. -Mikko