pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: louis <louis@ibms.sinica.edu.tw>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: The logic behind the prepared statement in PostgreSQL
Date: Thu, 07 Oct 2010 10:16:06 +1300
Message-ID: <4CACE716.5010600@opencloud.com> (raw)
In-Reply-To: <1286371782.17773.51.camel@london>
References: <1286365302.13691.35.camel@london>
	<4CAC696F.9020109@opencloud.com>
	<1286371782.17773.51.camel@london>

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



view thread (8+ messages)  latest in thread

Message-ID: <4CACE716.5010600@opencloud.com>
Permalink:  ../4CACE716.5010600@opencloud.com/
Also on:    postgresql.org/message-id/4CACE716.5010600@opencloud.com

 · 

reply

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: oliver@opencloud.com, louis@ibms.sinica.edu.tw
  Subject: Re: The logic behind the prepared statement in PostgreSQL
  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>

* 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