Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id F0B519F9CFF for ; Thu, 6 Sep 2007 04:38:14 -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 51725-07 for ; Thu, 6 Sep 2007 04:38:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by postgresql.org (Postfix) with ESMTP id AF8099F9C96 for ; Thu, 6 Sep 2007 04:38:09 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id l15so64960rvb for ; Thu, 06 Sep 2007 00:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=9Yyr9ZH/8amR5QMB7Tca6lQxU1JemxrhjDh+G7iuJMg=; b=NCdlDqUSZd2ooBo2et5TvHkGP6tRQroOXVH7SnkAtc5nGK7o/oDuKGtmGxs0azPyLG8w1mKv7lfuGUp0PnxvANcxzhTvN7EznRYwlnMG79/5NZbYPBCchL8k8flSONlOP4B0jEgC2qvJAhK3xADTPUpP90OpX9Gs3gNidTWgZa0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=WBqtHAOLqaBhm641n+3FCgXTAenRh1m9+B926pBOZIUQqhKkcHbkz0VN3WwwEy1v45hfScA6s+g1fyl6kSmNQWF2EgmeJ1gEtPNB+zbO0q7XkQaiApWld22kBAQcLmCuu6uY09fOmScyyknJHToU0u0BC75Im00En0QiPeGqnTA= Received: by 10.141.107.13 with SMTP id j13mr122567rvm.1189064288303; Thu, 06 Sep 2007 00:38:08 -0700 (PDT) Received: by 10.141.69.7 with HTTP; Thu, 6 Sep 2007 00:38:08 -0700 (PDT) Message-ID: Date: Thu, 6 Sep 2007 09:38:08 +0200 From: "Peter Kovacs" To: "Dave Cramer" Subject: Re: Caching driver on pgFoundry? Cc: "Kris Jurka" , "Josh Berkus" , "Heikki Linnakangas" , pgsql-jdbc@postgresql.org In-Reply-To: <8FD2948B-9513-4611-9310-908CA253EECD@fastcrypt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200709050825.27080.josh@agliodbs.com> <200709050911.09478.josh@agliodbs.com> <46DED76E.9050706@enterprisedb.com> <200709050937.29027.josh@agliodbs.com> <8FD2948B-9513-4611-9310-908CA253EECD@fastcrypt.com> X-Google-Sender-Auth: 69ceab486a59cfe5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/46 X-Sequence-Number: 17468 > If this is the case then I would argue that having caching in the > appserver is a great idea for everyone using an appserver it does not > help the rest of the world that doesn't use an app server. We have a product that doesn't use app server, still we need a cached connection pool. In this case this is an Oracle backend, so we started using the cached pool implementation found in the Oracle jdbc driver -- assuming that Oracle will do caching/pooling best for its Connections. The fact is that we've been having some issues with the Oracle cached pool implementation, so I started to extensively test the Apache DBCP and the issues seems to have gone away. Apart from parabolic example above, I think that from a "global" perspective, it would be much more reasonable to help the Apache people solve any issue which someone using the Commons DBCP with PostgreSQL might have than doing your own little house work excercise of implementing yet-another-ccp. Thanks Peter On 9/5/07, Dave Cramer wrote: > > On 5-Sep-07, at 1:27 PM, Kris Jurka wrote: > > > > > > > On Wed, 5 Sep 2007, Josh Berkus wrote: > > > >>> Can't you use DBCP or some other open source statement cache > >>> implementation that's in a more mature state? > >> > >> Unfortunately, no. The benchmark is already out. > >> > > > > But that benchmark was run with a different caching implementation > > than the wrapper version, so I'm not sure how that's relevant. > > When Sun chose to use unpublished and unreviewed code for the > > benchmark they got themselves in a little bind and I'm not sure > > it's our job to bail them out by publishing and advertising code > > that we're not confident in. Heikki, Oliver, and myself did not > > believe the code used by Sun in the benchmark was correct in the > > general case so it was rejected for inclusion in the core driver. > > So as I understand it the objection to the caching implementation is > that statement caching belongs in the app server ? > > If this is the case then I would argue that having caching in the > appserver is a great idea for everyone using an appserver it does not > help the rest of the world that doesn't use an app server. > > Is there a technical argument here ? > > Dave > > > Dave/Lazlo have since started a new implemention on pgfoundry, but > > that was never discussed with the JDBC list or submitted for > > inclusion. > > > > To satisfy the benchmark requirements, Sun should publish the code/ > > driver actually used in the benchmark somewhere on Sun's website > > and, if honest, should recommend that people don't use it. From > > there we should try to gather some consensus on whether PG needs > > its own statement cache implementation and then rerun the > > benchmarks with it or some other implementation. > > > > Kris Jurka > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 4: Have you searched our list archives? > > > > http://archives.postgresql.org > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >