Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 61B689F9ADD for ; Sun, 9 Sep 2007 06:00:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 80773-04 for ; Sun, 9 Sep 2007 06:00:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id C84979F9AD0 for ; Sun, 9 Sep 2007 06:00:31 -0300 (ADT) thread-index: Acfyv+f8CO/H3JJqSK6cboq8Avq8Lg== Received: from [192.168.1.33] ([86.27.110.50]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Sun, 9 Sep 2007 05:00:44 -0400 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Message-ID: <46E3B609.10106@enterprisedb.com> Date: Sun, 09 Sep 2007 09:59:53 +0100 From: "Heikki Linnakangas" User-Agent: Icedove 1.5.0.12 (X11/20070730) MIME-Version: 1.0 To: "Dave Cramer" Cc: "Oliver Jowett" , "Simon Riggs" , , "Kris Jurka" , "Josh Berkus" Subject: Re: Caching driver on pgFoundry? 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> <46DF0F70.50802@enterprisedb.com> <1189156640.4175.464.camel@ebony.site> <30775804-224A-4807-BDDD-5ACB9A173BCA@fastcrypt.com> <46E14E80.9030409@opencloud.com> <46E31673.4070504@opencloud.com> <844D9561-315B-4A90-93AA-F2940BB3C374@fastcrypt.com> In-Reply-To: <844D9561-315B-4A90-93AA-F2940BB3C374@fastcrypt.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Sep 2007 09:00:44.0734 (UTC) FILETIME=[E7F0C5E0:01C7F2BF] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/77 X-Sequence-Number: 17499 Dave Cramer wrote: > It's simpler, there's about half a dozen classes and one if statement as > opposed to implementing the Connection and Statement interfaces for 3 > versions of jdbc and yet another build system that does the same. I think it's reasonable to assume that the cache will only be used in new applications, so you don't need to support as many JDBC versions as the driver itself. Actually, do you really need to have a separate version for each JDBC version? Wouldn't a wrapper written and compiled with JDBC4 work with older JDKs as well, as long as the application doesn't use the JDBC4 features? I might be missing something, I don't fully understand how it works in the core driver either. Have you considered using java.lang.reflect.Proxy? It has some overhead, but is it significant in modern JVMs? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com