Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id DE14A9FB2B1 for ; Thu, 5 Jul 2007 05:29:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72913-02 for ; Thu, 5 Jul 2007 05:29:17 -0300 (ADT) X-Greylist: delayed 00:05:48.202553 by SQLgrey-1.7.5 Received: from aa002msb.fastweb.it (aa002msb.fastweb.it [85.18.95.81]) by postgresql.org (Postfix) with ESMTP id 2565C9FB298 for ; Thu, 5 Jul 2007 05:29:17 -0300 (ADT) Received: from fluca.local (85.18.239.131) by aa002msb.fastweb.it (7.3.118.6) id 466578130169D8F7 for pgsql-jdbc@postgresql.org; Thu, 5 Jul 2007 10:23:26 +0200 From: Flipper To: pgsql-jdbc@postgresql.org Subject: prepared statement: are they pre-compiled? Date: Thu, 5 Jul 2007 10:23:25 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707051023.25650.flipper@gammadue.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200707/16 X-Sequence-Number: 17190 Hi all, a little question about prepared statement. I know that one advantage of using prepared statement is the fact that the statament could be "precompiled" by the server before the binding of parameters, is it true? But while observing the messages sent from the FE to the BE by the postgresql driver, I noticed that the query is sent along with the bind of the parameters, that is the when the executeQuery() method is called on the prepared statement, both the parse and bind messages are sent. I thought the bind message have to be sent before the bind one, but it seems to me it's not. Anyone can please help me understand this? Thanks.