Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 720739FB5C7 for ; Mon, 25 Jun 2007 10:11:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 19641-01 for ; Mon, 25 Jun 2007 10:11:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id B3C119FB593 for ; Mon, 25 Jun 2007 10:11:36 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 7FEC81580668; Mon, 25 Jun 2007 09:23:30 -0400 (EDT) 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> <1182775348.13328.69.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9537AA08-53BB-434E-9E62-F326AADED792@fastcrypt.com> Cc: Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Prepared statements, parameters and logging Date: Mon, 25 Jun 2007 09:11:39 -0400 To: Csaba Nagy X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/95 X-Sequence-Number: 17157 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