pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Finneid <tfinneid@fcon.no>
To: pgsql-jdbc@postgresql.org
Subject: pooled prepared statements
Date: Tue, 12 May 2009 15:24:51 +0200
Message-ID: <4A0978A3.6030900@fcon.no> (raw)

Hi

When a PreparedStatment is created by a pooled connection, as far as I 
understand if, that creation happens on the server side, and a 
reference, of sorts, is returned to the client jdbc.

Is that prepared statement shared among the connections or is it only 
available to that single connection? and more importantly, can many 
connections use that prepared statement concurrently?

If it is shared, then it must be usable by concurrent connections, 
otherwise it will be difficult for the client to know if the statement 
is occupied or not. So I just want to confirm that I understand how the 
JDBC driver works.

regards

thomas



view thread (13+ messages)  latest in thread

Message-ID: <4A0978A3.6030900@fcon.no>
Permalink:  ../4A0978A3.6030900@fcon.no/
Also on:    postgresql.org/message-id/4A0978A3.6030900@fcon.no

 · 

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: tfinneid@fcon.no
  Subject: Re: pooled prepared statements
  In-Reply-To: <4A0978A3.6030900@fcon.no>
  References: <4A0978A3.6030900@fcon.no>

* 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