Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 622C8632F9F for ; Tue, 14 Apr 2009 12:41:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 52488-05 for ; Tue, 14 Apr 2009 12:41:38 -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 B43D76328A7 for ; Tue, 14 Apr 2009 12:41:38 -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 1LtklQ-0006rk-Qn; Wed, 15 Apr 2009 03:41:32 +1200 Message-ID: <49E4AEAC.5000700@opencloud.com> Date: Wed, 15 Apr 2009 03:41:32 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: John Lister CC: pgsql-jdbc@postgresql.org Subject: Re: Query preparation References: <49E4A6FA.7050407@kickstone.com> In-Reply-To: <49E4A6FA.7050407@kickstone.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 200904/50 X-Sequence-Number: 19497 John Lister wrote: > Hi, i was wondering if there is any reason why the query preparation is > done when the query is executed instead of when the preparedStatement is > created. It would be an extra network round-trip on every query, and there's no requirement to prepare it early. > Has any one looked into moving it? Why would you want to move it? -O