Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 454119FB361 for ; Mon, 25 Jun 2007 07:54:15 -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 94790-05 for ; Mon, 25 Jun 2007 07:54:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 8B9239FB1CC for ; Mon, 25 Jun 2007 07:54:02 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 7E5C91580601; Mon, 25 Jun 2007 07:05:55 -0400 (EDT) In-Reply-To: <1182768449.13328.60.camel@coppola.muc.ecircle.de> References: <1182768449.13328.60.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: <6A182763-97EC-43C9-BD13-EE5375A83AC2@fastcrypt.com> Cc: Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Prepared statements, parameters and logging Date: Mon, 25 Jun 2007 06:54:04 -0400 To: Csaba Nagy X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/91 X-Sequence-Number: 17153 Csaba, They will all be prepared. The threshold is whether to re-use the prepared statement. What you are seeing is the use of unnamed statements. If you really want them turned off use protocolVersion=2 Dave On 25-Jun-07, at 6:47 AM, Csaba Nagy wrote: > Hi all, > > I have a system (postgres 8.1) which was until now running with JDBC > parameter prepareThreshold=1 so it is always using server side > prepares > (we had some trouble in the past if not setting it so). Now we are > prepared to set this to 0, meaning no server side prepares by > default... > > The problem is that I did the switch and I still see queries which are > presumably server side prepared (marked with in the log - I > enabled reporting queries longer than 2 seconds)... > > The question is how do I tell for sure from the DB log if a query is > server side prepared or not ? I was presuming that in the > log > means server side prepare, some name like 'C_xyz' means client side > prepared statement. Is this correct ? > > Thanks, > Csaba. > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq