Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D1FC19FA1FE for ; Fri, 1 Dec 2006 09:39:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 38844-04 for ; Fri, 1 Dec 2006 09:39:08 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id AD28D9FA173 for ; Fri, 1 Dec 2006 09:39:08 -0400 (AST) Received: from [192.168.42.141] (71-208-179-7.hlrn.qwest.net [71.208.179.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail63.csoft.net (Postfix) with ESMTP id 612CAF249; Fri, 1 Dec 2006 08:39:06 -0500 (EST) Message-ID: <45703072.5070109@ejurka.com> Date: Fri, 01 Dec 2006 06:38:58 -0700 From: Kris Jurka User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Jesper Pedersen CC: pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL 8.2rc1 with JDBC/HEAD References: <20061130144736.M88656@vip.cybercity.dk> In-Reply-To: <20061130144736.M88656@vip.cybercity.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/14 X-Sequence-Number: 16246 Jesper Pedersen wrote: >> 2) binary transfer - still needs some more work and testing. Will wait for 8.3. > > Please include in 8.2 driver default on -- or make a 550 release with it in. > 8.3 is too long to wait for this kind of performance increase. > This makes some rather fundamental changes to how data is received and given the complexity of some of these types (timestamps), this is not something we want to rush into. Also the usage pattern that enables binary transfer makes testing and debugging harder because a fetch can work perfectly on the first attempt because it uses the text format and only on the second fetch does it go wrong. The actual performance increase depends on a specific usage pattern that will not apply to many users. Statement pooling or an extra network roundtrip to determine the result type prior to execute will be needed to make full use of binary transfer. I wonder what percentage of users will get gains from the current implementation? Kris Jurka