From: Flipper <flipper@gammadue.com>
To: pgsql-jdbc@postgresql.org
Subject: prepared statement: are they pre-compiled?
Date: Thu, 5 Jul 2007 10:23:25 +0200
Message-ID: <200707051023.25650.flipper@gammadue.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: flipper@gammadue.com
Subject: Re: prepared statement: are they pre-compiled?
In-Reply-To: <200707051023.25650.flipper@gammadue.com>
References: <200707051023.25650.flipper@gammadue.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox