Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id AA1819FB34F for ; Mon, 25 Jun 2007 07:47:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 59123-02 for ; Mon, 25 Jun 2007 07:47:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 6CCE19FA5D8 for ; Mon, 25 Jun 2007 07:47:32 -0300 (ADT) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id D318555C00B for ; Mon, 25 Jun 2007 12:47:30 +0200 (CEST) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Mon, 25 Jun 2007 12:47:29 +0200 Subject: Prepared statements, parameters and logging From: Csaba Nagy To: Postgres JDBC Content-Type: text/plain Message-Id: <1182768449.13328.60.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 25 Jun 2007 12:47:29 +0200 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jun 2007 10:47:30.0094 (UTC) FILETIME=[3A7024E0:01C7B716] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/90 X-Sequence-Number: 17152 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.