Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2C7409FB2FC for ; Wed, 1 Aug 2007 05:20:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 95422-04 for ; Wed, 1 Aug 2007 05:20:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail3.ecircle.de (mail3.ecircle.de [195.140.186.206]) by postgresql.org (Postfix) with ESMTP id 621CA9FB2F5 for ; Wed, 1 Aug 2007 05:20:49 -0300 (ADT) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail3.ecircle.de (READY) with ESMTP id 2FCD911C052; Wed, 1 Aug 2007 10:20:48 +0200 (CEST) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Wed, 1 Aug 2007 10:20:48 +0200 Subject: Re: statement caching patch from Laszlo Hornyak for review From: Csaba Nagy To: Heikki Linnakangas Cc: Dave Cramer , List In-Reply-To: <46AFA547.9010407@enterprisedb.com> References: <2937D635-FCCB-471A-B1DA-AF0E0E0C18EB@fastcrypt.com> <46AFA547.9010407@enterprisedb.com> Content-Type: text/plain Date: Wed, 01 Aug 2007 10:20:55 +0200 Message-Id: <1185956455.17154.7.camel@PCD12478.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2007 08:20:48.0044 (UTC) FILETIME=[DD4AA6C0:01C7D414] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/1 X-Sequence-Number: 17314 Heikki, > In fact, how about kicking our connection pool implementation out to an > external module as well? The connection pool and the statement cache > could live together as a pgfoundry project, or as an additional jar in > the jdbc project. The postgres ConnectionPool implementation included in the JDBC project already has some postgres specific bits (e.g. setPreparedThreashold), and I find it is not specific enough, as it is quite hard to set postgres specific settings on the pooled connections otherwise, as the place where the pool is configured is the natural place where all other default connection properties should be configured too. So my opinion is to make the ConnectionPool implementation as specific for postgres as it is reasonable, allowing to set most of the things you could set on a postgres connection. In particular it would be nice to set the default properties to pass on when creating a new pooled connection (this is actually not really postgres specific now that I think about it, but prepareThreshold is). Cheers, Csaba.