From: Dave Cramer <pg@fastcrypt.com>
To: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Prepared statements, parameters and logging
Date: Mon, 25 Jun 2007 09:11:39 -0400
Message-ID: <9537AA08-53BB-434E-9E62-F326AADED792@fastcrypt.com> (raw)
In-Reply-To: <1182775348.13328.69.camel@coppola.muc.ecircle.de>
References: <1182768449.13328.60.camel@coppola.muc.ecircle.de>
<6A182763-97EC-43C9-BD13-EE5375A83AC2@fastcrypt.com>
<1182770018.13328.63.camel@coppola.muc.ecircle.de>
<C8485EE8-2EA6-4C87-91CB-E5370A3BDC53@fastcrypt.com>
<1182775348.13328.69.camel@coppola.muc.ecircle.de>
I think the text should be specifying that once you exceed
preparedThreshold executions the driver uses a named prepared
statement, and can re-use it. Otherwise it uses unnamed prepared
statements which need to be prepared for each execution.
Dave
On 25-Jun-07, at 8:42 AM, Csaba Nagy wrote:
> Dave,
>
> If I read [1] correctly, the prepareThreshold parameter should
> actually
> do what I want in protocol version 3... or am I misreading something ?
>
> [1] http://jdbc.postgresql.org/documentation/81/server-prepare.html
>
> Cheers,
> Csaba.
>
> On Mon, 2007-06-25 at 13:24, Dave Cramer wrote:
>> As far as I know you can't have both. In version 3 protocol,
>> everything is a server side prepared statement without parameters.
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
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: pg@fastcrypt.com, nagy@ecircle-ag.com
Subject: Re: Prepared statements, parameters and logging
In-Reply-To: <9537AA08-53BB-434E-9E62-F326AADED792@fastcrypt.com>
References: <1182768449.13328.60.camel@coppola.muc.ecircle.de> <6A182763-97EC-43C9-BD13-EE5375A83AC2@fastcrypt.com> <1182770018.13328.63.camel@coppola.muc.ecircle.de> <C8485EE8-2EA6-4C87-91CB-E5370A3BDC53@fastcrypt.com> <1182775348.13328.69.camel@coppola.muc.ecircle.de> <9537AA08-53BB-434E-9E62-F326AADED792@fastcrypt.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