From: louis <louis@ibms.sinica.edu.tw>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: The logic behind the prepared statement in PostgreSQL
Date: Thu, 07 Oct 2010 13:55:04 +0800
Message-ID: <1286430904.7465.4.camel@london> (raw)
In-Reply-To: <4CACE716.5010600@opencloud.com>
References: <1286365302.13691.35.camel@london>
<4CAC696F.9020109@opencloud.com>
<1286371782.17773.51.camel@london>
<4CACE716.5010600@opencloud.com>
On Thu, 2010-10-07 at 10:16 +1300, Oliver Jowett wrote:
> louis wrote:
>
> > However, while tracing the call stack I found that the
> > core.v3.QueryExecutorImpl.sendBind method sends a query statement Name
> > to PGStream, does it mean JDBC driver use the statement name to identify
> > the corresponding execution plan on a Postgresql server?
> > I have such assumption since PGStream seems to be the connection between
> > JDBC driver and the PostgreSQL server, and I can't find other obvious
> > path for JDBC code to specify an execution plan on the server side.
>
> A Bind message associates parameter values with a previously created
> statement. You probably want to read the docs that describe the FE/BE
> protocol: http://www.postgresql.org/docs/9.0/static/protocol.html
>
> Oliver
>
Very helpful information.
Much appreciated
Louis
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: louis@ibms.sinica.edu.tw, oliver@opencloud.com
Subject: Re: The logic behind the prepared statement in PostgreSQL
In-Reply-To: <1286430904.7465.4.camel@london>
References: <1286365302.13691.35.camel@london> <4CAC696F.9020109@opencloud.com> <1286371782.17773.51.camel@london> <4CACE716.5010600@opencloud.com> <1286430904.7465.4.camel@london>
* 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