X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6D4A9D1B496 for ; Sun, 25 Apr 2004 09:46:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 15922-08 for ; Sun, 25 Apr 2004 09:46:58 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id C0182D1B47C for ; Sun, 25 Apr 2004 09:46:53 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BHj28-0001fH-00 for ; Mon, 26 Apr 2004 00:46:56 +1200 Message-ID: <408BB33D.8080005@opencloud.com> Date: Mon, 26 Apr 2004 00:46:53 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: Re: patch: streaming of bytea parameter values References: <4085F25A.8060009@opencloud.com> In-Reply-To: <4085F25A.8060009@opencloud.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200404/231 X-Sequence-Number: 9961 Oliver Jowett wrote: > This patch allows bytea parameters set via setBytes() / > setBinaryStream() to be streamed to the backend. With the patch applied, > the additional memory overhead for bytea parameters is small and > independent of how large the parameter data is. > > Note that it doesn't touch the ResultSet path, so you'll still need a > pile of extra memory if you execute queries that return large bytea values. > > It passes the driver's testcases against a 7.4 server, and doesn't show > any problems after brief testing with our bytea-using application. I've > had a report of strange things happening on the server->client path, but > don't have any details at the moment. > > This needs testing under a real workload, and testing against a 7.3 > server (the V2 protocol path is currently untested). Any volunteers? I just tried this against a 7.3.6 server and saw no problems (passes the driver testsuite, boots our application). -O