pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: PGStatement#setPrepareThreshold
Date: Wed, 02 Aug 2006 16:32:54 +0200
Message-ID: <1154529173.21451.27.camel@coppola.muc.ecircle.de> (raw)

Hi all,

Question: will PGStatement.setPrepareThreshold(1) cause server side
prepare to be used already on the first execution, or only after the
second one ?

The problem: I want to force server side prepare at least for some of
the queries on my system, as the query plan is completely bad if the
server knows the parameters when planning (due to null values in IN
list, nothing to be fixed in my application unless I completely rewrite
some parts of it).

I couldn't figure out this from the log files... postgres logs the
queries as <unnamed>, but that doesn't tell me too much.

Is there a way to force server side prepare from the first query ?

Thanks,
Csaba.





view thread (28+ messages)  latest in thread

Message-ID: <1154529173.21451.27.camel@coppola.muc.ecircle.de>
Permalink:  ../1154529173.21451.27.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1154529173.21451.27.camel@coppola.muc.ecircle.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-jdbc@postgresql.org
  Cc: nagy@ecircle-ag.com
  Subject: Re: PGStatement#setPrepareThreshold
  In-Reply-To: <1154529173.21451.27.camel@coppola.muc.ecircle.de>
  References: <1154529173.21451.27.camel@coppola.muc.ecircle.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