X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CD02E563A1 for ; Wed, 9 Mar 2005 13:16:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08567-07 for ; Wed, 9 Mar 2005 13:15:55 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 109AB56376 for ; Wed, 9 Mar 2005 13:15:53 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1D912A-0000FJ-00; Thu, 10 Mar 2005 02:15:30 +1300 Message-ID: <422EF6EF.4020103@opencloud.com> Date: Thu, 10 Mar 2005 02:15:27 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roland Walter Cc: "pgsql-jdbc@postgresql.org" Subject: Re: JDBC driver build 215 slow when index contains column References: <422EC149.5040306@mosaic-ag.com> In-Reply-To: <422EC149.5040306@mosaic-ag.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/82 X-Sequence-Number: 12474 Roland Walter wrote: > I use PostgreSQL 7.4.6 and the JDBC-driver build 215. [...] > Have I to do a typecast to ::bigint with build 215 in the PreparedStatement > to get the same performance as with build 310? Against a 7.4.x server, yes. > That would be bad, as I > had to > form the PreparedStatement incompatible to other databases. Why can't you use build 310? It's intended to work against 7.4.x servers as well as 8.0.x. -O