Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id E34BA6331AF for ; Tue, 12 May 2009 12:34:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 72739-08 for ; Tue, 12 May 2009 12:34:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kerberos.fcon.no (165.84-49-232.nextgentel.com [84.49.232.165]) by mail.postgresql.org (Postfix) with ESMTP id 753BC6327B4 for ; Tue, 12 May 2009 12:34:30 -0300 (ADT) Received: from [10.0.0.38] (duplo.lan [10.0.0.38]) by kerberos.fcon.no (Postfix) with ESMTP id 678D0370A6 for ; Tue, 12 May 2009 15:24:51 +0200 (CEST) Message-ID: <4A0978A3.6030900@fcon.no> Date: Tue, 12 May 2009 15:24:51 +0200 From: Thomas Finneid User-Agent: Thunderbird 2.0.0.21 (X11/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: pooled prepared statements Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.1 tagged_above=0 required=5 tests=RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 200905/63 X-Sequence-Number: 19613 Hi When a PreparedStatment is created by a pooled connection, as far as I understand if, that creation happens on the server side, and a reference, of sorts, is returned to the client jdbc. Is that prepared statement shared among the connections or is it only available to that single connection? and more importantly, can many connections use that prepared statement concurrently? If it is shared, then it must be usable by concurrent connections, otherwise it will be difficult for the client to know if the statement is occupied or not. So I just want to confirm that I understand how the JDBC driver works. regards thomas