Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 09C676332D6 for ; Sun, 3 May 2009 21:00:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 34983-10 for ; Sun, 3 May 2009 21:00:24 -0300 (ADT) 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 11BF16328AF for ; Sun, 3 May 2009 21:00:15 -0300 (ADT) Received: from 219-89-243-186.adsl.xtra.co.nz ([219.89.243.186] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1M0lbI-0001RL-Ov; Mon, 04 May 2009 12:00:04 +1200 Message-ID: <49FE3001.40006@opencloud.com> Date: Mon, 04 May 2009 12:00:01 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: =?UTF-8?B?UMOpdGVyIEtvdsOhY3M=?= CC: Roland Roberts , pgsql-jdbc@postgresql.org Subject: Re: Very strange performance decrease when reusing a PreparedStatement References: <5C2E1645-73B6-4509-96CD-FA77869516AB@noopsis.fr> <49F71EDD.2070200@opencloud.com> <02437794-A78D-449C-843F-B823195F9623@noopsis.fr> <491f66a50905030310j5b4cdcd8jbf4f6e757c2ba580@mail.gmail.com> <49FDEB97.6050800@astrofoto.org> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/30 X-Sequence-Number: 19580 Péter Kovács wrote: > Regardless of what Oracle can or cannot do, the question stays put: > Can precompiled Postgres SQL statements handle varying parameters? Yes. > If > they can (and people here say they can), why doesn't the JDBC > PreparedStatement take advantage of it? It does. -O