Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 87C922E32AF for ; Wed, 9 Jan 2008 15:04:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 26673-05 for ; Wed, 9 Jan 2008 15:04:04 -0400 (AST) Received: from mail.planwerk6.de (taube.planwerk6.de [88.198.1.9]) by postgresql.org (Postfix) with ESMTP id A315C2E0102 for ; Wed, 9 Jan 2008 15:02:22 -0400 (AST) Received: from localhost (taube.planwerk6.de [127.0.0.1]) by mail.planwerk6.de (Postfix) with ESMTP id B272285C288 for ; Wed, 9 Jan 2008 20:02:16 +0100 (CET) Received: from mail.planwerk6.de ([127.0.0.1]) by localhost (mail.planwerk6.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11416-15 for ; Wed, 9 Jan 2008 20:02:16 +0100 (CET) Received: from supertipp.de (pd95b4e37.dip0.t-ipconnect.de [217.91.78.55]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by mail.planwerk6.de (Postfix) with ESMTP id 6A37285C286 for ; Wed, 9 Jan 2008 20:02:16 +0100 (CET) From: mljv@planwerk6.de To: pgsql-general@postgresql.org Subject: Prepared Statements Date: Wed, 9 Jan 2008 20:02:15 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801092002.15417.mljv@planwerk6.de> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at planwerk6.de X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/392 X-Sequence-Number: 126602 Hi, i am trying to understand "Prepared Statements". I am asking because i want to understand the impact of "Prepared statements" to my application. Actually i use Hibernate, DBCP Connection Pool with Postgresql-JDBC Driver and Postgresql 8.1. - I know there is a PREPARE Statement in Postgresql and read the docs. - in PostgresqlJDBC i have a prepareThreshold parameter which i left to default of 5. - in DBCP i have a property "poolPreparedStatements", set to true. Does ist just configure prepareThreshold of JDBC or does it maintain a statementPool of it's own? In my Log files of postgresql each query is called like this: EXECUTE [PREPARE: select ...] I have not found anything about preparing "unnamed" statements. What does it mean? many questions, but i was googling a lot and "Prepared Statement" is a somewhat ambiguous expression, isn't it? Can someone clarify this to me, please? kind regards, Janning