Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0CFFF63221F for ; Wed, 13 May 2009 04:57:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70587-08 for ; Wed, 13 May 2009 04:57:06 -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 DD66463217A for ; Wed, 13 May 2009 04:57:06 -0300 (ADT) Received: from [10.0.0.39] (duplo.lan [10.0.0.39]) by kerberos.fcon.no (Postfix) with ESMTP id 04EEA370A8; Wed, 13 May 2009 09:57:05 +0200 (CEST) Message-ID: <4A0A7D50.40704@fcon.no> Date: Wed, 13 May 2009 09:57:04 +0200 From: Thomas Finneid User-Agent: Thunderbird 2.0.0.21 (X11/20090302) MIME-Version: 1.0 To: John Lister CC: pgsql-jdbc@postgresql.org Subject: Re: pooled prepared statements References: <4A0978A3.6030900@fcon.no> <4A099C8F.60709@kickstone.com> <4A09C4E6.3010408@fcon.no> <4A09D04B.9070206@kickstone.com> In-Reply-To: <4A09D04B.9070206@kickstone.com> 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/71 X-Sequence-Number: 19621 John Lister wrote: > >> Probably easier to create a server side function instead, then. > But wouldn't you still have to go through all the planning steps within > the function for any queries, although i'll admit i'm not familiar with > Postgresql functions. Server-side functions are compiled when installed. Since my function would only contain simple queries that are parameterized, it would pre-compile well. thomas