Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 68144B5DC6E for ; Mon, 19 Sep 2011 07:12:17 -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 44373-04-6 for ; Mon, 19 Sep 2011 10:12:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id CDBDAB5DCF4 for ; Mon, 19 Sep 2011 07:11:51 -0300 (ADT) Received: by fxe4 with SMTP id 4so3737704fxe.19 for ; Mon, 19 Sep 2011 03:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=KdlbF1g5TKAS2xO39tiYL2wbxY5cf1hVId/pRx1anSA=; b=EN5vTNmVGvrANaZYps9VL9bRC61GSQVJ9dYETNH7ui77g0uwCxuTTSxt3FoJFDGZU4 RjutXtPQmkPrZIt428aRcqf9yGyk0AOZPTJ1PvrYcAokaHlxhCB64JMYeIDNiej8zJRG C+5NlmQO4s4Himlnx6L67g4d35KeAbt8rDKR0= Received: by 10.204.157.144 with SMTP id b16mr1631979bkx.286.1316427111152; Mon, 19 Sep 2011 03:11:51 -0700 (PDT) Received: from [94.21.135.19] (94-21-135-19.pool.digikabel.hu. [94.21.135.19]) by mx.google.com with ESMTPS id w10sm16756bkq.2.2011.09.19.03.11.48 (version=SSLv3 cipher=OTHER); Mon, 19 Sep 2011 03:11:49 -0700 (PDT) Message-ID: <4E77155D.8050200@gmail.com> Date: Mon, 19 Sep 2011 12:11:41 +0200 From: Bodor Andras User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 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> In-Reply-To: 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.789 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.1, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/58 X-Sequence-Number: 22176 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 >