pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mljv@planwerk6.de
To: pgsql-general@postgresql.org
Subject: Prepared Statements
Date: Wed, 9 Jan 2008 20:02:15 +0100
Message-ID: <200801092002.15417.mljv@planwerk6.de> (raw)

Hi,

i am trying to understand "Prepared Statements". I am asking because i want to 
understand the impact of "Prepared statements" to my application.

Actually i use Hibernate, DBCP Connection Pool with Postgresql-JDBC Driver and 
Postgresql 8.1.

- I know there is a PREPARE Statement in Postgresql and read the docs. 
- in PostgresqlJDBC i have a prepareThreshold parameter which i left to 
default of 5. 
- in DBCP i have a property "poolPreparedStatements", set to true. Does ist 
just configure prepareThreshold of JDBC or does it maintain a statementPool 
of it's own? 

In my Log files of postgresql each query is called like this:

    EXECUTE <unnamed> [PREPARE: select ...]

I have not found anything about preparing "unnamed" statements. What does it 
mean?

many questions, but i was googling a lot and "Prepared Statement" is a 
somewhat ambiguous expression, isn't it? Can someone clarify this to me, 
please?

kind regards,
Janning






view thread (19+ messages)  latest in thread

Message-ID: <200801092002.15417.mljv@planwerk6.de>
Permalink:  ../200801092002.15417.mljv@planwerk6.de/
Also on:    postgresql.org/message-id/200801092002.15417.mljv@planwerk6.de

 · 

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-general@postgresql.org
  Cc: mljv@planwerk6.de
  Subject: Re: Prepared Statements
  In-Reply-To: <200801092002.15417.mljv@planwerk6.de>
  References: <200801092002.15417.mljv@planwerk6.de>

* 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