X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D810F9DCC36 for ; Thu, 22 Dec 2005 17:11:26 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54757-10 for ; Thu, 22 Dec 2005 17:11:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id F10ED9DCC02 for ; Thu, 22 Dec 2005 17:11:23 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EpXic-0005TP-Sw; Fri, 23 Dec 2005 10:11:22 +1300 Message-ID: <43AB167D.4060209@opencloud.com> Date: Thu, 22 Dec 2005 21:11:25 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Charnoky CC: pgsql-jdbc@postgresql.org Subject: Re: Driver compatibility with 7.3 server References: <43AAE613.10903@nextbus.com> In-Reply-To: <43AAE613.10903@nextbus.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.1 required=5 tests=[AWL=0.100] X-Spam-Score: 0.1 X-Spam-Level: X-Archive-Number: 200512/112 X-Sequence-Number: 14443 Mike Charnoky wrote: > Hi everyone, happy holidays! We are are currently using Postgresql 7.3 > and would like to be able to use cursors for large selects (ie: using > Statement.setFetchSize()). Unfortunately, this is not implemented in > the 7.3 JDBC driver. Is it possible to use a newer version of the JDBC > driver, say 7.4, with the 7.3 version of the db server? Thanks. Later driver versions should work fine with a 7.3 server .. but .. The setFetchSize() / cursor support in recent drivers (8.0 or later) only turns on if the v3 wire protocol is being used. 7.3 servers don't support v3, so it's not going to help your particular case. For a while, the driver would rewrite queries to use DECLARE rather than using the v3 protocol facilities, which also works under v2 (but is somewhat more fragile). IIRC, this was done in the 7.4 series. So you could try an older, 7.4-era, driver and it might do the trick. -O