pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Kris Jurka <books@ejurka.com>
Cc: Josh Berkus <josh@agliodbs.com>
Subject: Re: Caching driver on pgFoundry?
Date: Sun, 09 Sep 2007 09:59:53 +0100
Message-ID: <46E3B609.10106@enterprisedb.com> (raw)
In-Reply-To: <844D9561-315B-4A90-93AA-F2940BB3C374@fastcrypt.com>
References: <200709050825.27080.josh@agliodbs.com>
	<200709050911.09478.josh@agliodbs.com>
	<46DED76E.9050706@enterprisedb.com>
	<200709050937.29027.josh@agliodbs.com>
	<Pine.BSO.4.64.0709051313050.30413@leary.csoft.net>
	<8FD2948B-9513-4611-9310-908CA253EECD@fastcrypt.com>
	<Pine.BSO.4.64.0709051404440.13924@leary.csoft.net>
	<46DF0F70.50802@enterprisedb.com>
	<1189156640.4175.464.camel@ebony.site>
	<30775804-224A-4807-BDDD-5ACB9A173BCA@fastcrypt.com>
	<46E14E80.9030409@opencloud.com>
	<CE4AB3AC-4D60-44B5-BCB2-B5519BF4199D@fastcrypt.com>
	<46E31673.4070504@opencloud.com>
	<844D9561-315B-4A90-93AA-F2940BB3C374@fastcrypt.com>

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



view thread (50+ messages)  latest in thread

Message-ID: <46E3B609.10106@enterprisedb.com>
Permalink:  ../46E3B609.10106@enterprisedb.com/
Also on:    postgresql.org/message-id/46E3B609.10106@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: heikki@enterprisedb.com, pg@fastcrypt.com, oliver@opencloud.com, simon@2ndquadrant.com, books@ejurka.com, josh@agliodbs.com
  Subject: Re: Caching driver on pgFoundry?
  In-Reply-To: <46E3B609.10106@enterprisedb.com>
  References: <200709050825.27080.josh@agliodbs.com> <200709050911.09478.josh@agliodbs.com> <46DED76E.9050706@enterprisedb.com> <200709050937.29027.josh@agliodbs.com> <Pine.BSO.4.64.0709051313050.30413@leary.csoft.net> <8FD2948B-9513-4611-9310-908CA253EECD@fastcrypt.com> <Pine.BSO.4.64.0709051404440.13924@leary.csoft.net> <46DF0F70.50802@enterprisedb.com> <1189156640.4175.464.camel@ebony.site> <30775804-224A-4807-BDDD-5ACB9A173BCA@fastcrypt.com> <46E14E80.9030409@opencloud.com> <CE4AB3AC-4D60-44B5-BCB2-B5519BF4199D@fastcrypt.com> <46E31673.4070504@opencloud.com> <844D9561-315B-4A90-93AA-F2940BB3C374@fastcrypt.com> <46E3B609.10106@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox