Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 0DFAF1337B8E for ; Mon, 4 Oct 2010 19:09:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 25236-08 for ; Mon, 4 Oct 2010 22:09:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 458451337B2F for ; Mon, 4 Oct 2010 19:09:45 -0300 (ADT) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P2tDy-0002nU-Lj; Tue, 05 Oct 2010 11:09:34 +1300 Message-ID: <4CAA5096.3040202@opencloud.com> Date: Tue, 05 Oct 2010 11:09:26 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Boris Partensky CC: Maciek Sakrejda , PG-JDBC Mailing List Subject: Re: Upgrading JDBC driver from 7.3 to 8.4 affected execution plans References: <9c7afd41-61f0-4acb-bc14-bb10aeaf395f@d17g2000yqm.googlegroups.com> <4CA91F81.4050505@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/41 X-Sequence-Number: 21009 Boris Partensky wrote: > Oh, this issue should probably be mentioned in > http://jdbc.postgresql.org/documentation/faq.html#upgradeTo80 > document. It's pretty subtle and can bite someone hard. The thing that confuses me is that you said you also see the problem via psql - but psql isn't using parameterized queries at all (psql should be very similar to how the 7.3 driver executes queries, as in the 7.3 era the driver would do parameter substitution before sending a single query string to the server) -O