pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Hastie <andrew@ahastie.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC 4 Compliance
Date: Thu, 27 Jun 2013 13:45:03 +0100
Message-ID: <51CC33CF.3030708@ahastie.net> (raw)
In-Reply-To: <7FF12CB8-374C-4043-931D-C66432505924@gmail.com>
References: <4B8A7D9B462A43EFBAFB9993F4B086BE@polaris>
	<293F2084889C4DB797EB047AE5BF8410@polaris>
	<24064BE7-766E-4B4A-923D-C22771D06D35@me.com>
	<CADK3HHKLY4XAojuRei6EnNd2z-YLS7ZO3996g04hzKNGdVzwHA@mail.gmail.com>
	<51C72336.4090806@ttc-cmc.net>
	<CADK3HHKAfhQ0j6Rt3EXyB+U6-hoaahCuE7+SQ--6WPo06LUw1g@mail.gmail.com>
	<A2B35D2698B0C74F9B8333525E67ED013668AC43@plindyexch02.polarislabs.lan>
	<CADK3HH+z8xKTZaQ2ZCtSzc4tf8h3hmq7K6stqCSe2ncH6zxvRg@mail.gmail.com>
	<51C8890F.2040403@polarislabs.com>
	<51C93D64.2050807@vmware.com>
	<CADK3HHL9n1j+MnH8tvSZiqNePTF9imar4waDV7Z2qRSxN2-N4Q@mail.gmail.com>
	<51CAEF84.9070106@mlfowler.com>
	<51CB178C.9030603@ttc-cmc.net>
	<CAC92xsoF52Oh7tAerAFODF82maSVkh8+nchea9OdcD61nXgpcg@mail.gmail.com>
	<51CB4AEC.6060706@ttc-cmc.net>
	<CAHpHs3=aR72t6DqYTUG6p5PVG6-Qp9zhmiiQpsZuFxNXPTvnkw@mail.gmail.com>
	<51CB680E.80 80506@archidevsys.co.nz>
	<D136672A-52A0-4791-B537-DB06F51FAFDF@hub.org>
	<7FF12CB8-374C-4043-931D-C66432505924@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

I fully agree with Steven's point re. the existing driver's level of 
stability. I also agree that without the efforts from a few key people, 
getting PostgreSQL adoption to where it is today in the Java space would 
simply not have a happened. Personally I am very grateful to those people.

 From my perspective (a corporate Java developer and PostgreSQL user for 
more years than I care to remember), here are my views:-

1. Stability has to be top priority. I say this on the basis that every 
month that goes by, more and more organisations are either evaluating or 
making a switch away from proprietary databases and onto PostgreSQL. A 
great many of these are Java shops using some form of server environment 
such as Tomcat, Glassfish, WebSphere etc., so access will normally be 
via the JDBC Driver. To de-stabilise the existing driver in any way, 
shape or form, has the potential to de-rail the adoption of PostgreSQL 
in a big, big way. Do not do it!

2. To say that anything prior to Java7 is "dead" is ridiculous at this 
point in time, at least in a commercial environment. In one or two 
year's time however it may be different. Yes, there may be compelling 
security reasons to upgrade from 6 to 7, but in an existing deployed 
commercial environment happily running Java 5 or 6, you are only going 
to upgrade to Java 7 if there is a very good reason to do so. I can 
recall numerous examples of a "simple" Java version upgrade breaking one 
or more production systems. I've just checked the very latest WebShere 
offering from IBM (Version 8.5.5) and that still installs Java6 by default.

3. Yes, the current driver is not perfect, and there are several missing 
features which most people have identified as being more than just a 
nice to have. In particular the work on getting XA support working 
correctly by Bryan Varner is something that will certainly help with 
installations running high transaction rate Glassfish or WebSphere 
installations and using the XA mode driver is a requirement. The big 
question is how do we get these new features and major fixes into the 
current driver without risk of destabilisation?

Here's my suggestion on the way forward:

1. Retain the existing driver in its current form (JDBC4), archive it 
and maintain it for major fixes only. Ship this as "pg-jdbc4-stable.jar" 
or similar.
2. Where feasible, start adding in features taken from the other 
initiatives into the main branch and ship this as "pg-jdbc4.jar" or similar.
3. Where we have a "custom" driver (say Kevin Wooten's high performance 
driver) where the driver is either not fully specification compliant, or 
customised in some other manner, we keep as a separate codebase and ship 
as "pg-jdbc?-????,jar". In time, where feasible, fold the code into the 
main branch.

I see no problem in shipping multiple JAR libraries as several 
commercial JDBC vendors are already doing this. We make them all 
available with recommendations for stability being to use the "stable" 
driver. If you want to try and experiment with one of the other drivers, 
you can do so, we just need to document in the release the known issues 
and differences to the stable driver. Environments like IBM WebSphere 
support sand-boxing drivers within an application, so having multiple 
driver versions loaded into a single JEE App Server is not an issue. If 
you simply dump the driver into the "global" library, you get all you 
deserve IMHO.

As I said, just my personal view on things.

On 26/06/13 23:51, Steven Schlansker wrote:
> On Jun 26, 2013, at 3:29 PM, "Marc G. Fournier" <scrappy@hub.org> wrote:
>
>>> How about, when Kevin's driver is ready:
>>> 	• recommending the existing driver for JDBC3 and earlier
>>> 	• and Kevin's driver for JDBC4 and greater?
>> Why not just create a 'pre-JDBC4 branch for the current official one and import Kevin's as JDBC4, for going forward?  What I've read seems to indicate a reluctance to make a whole whack of changes on the current code, so putting it over to a branch shouldn't cause to much angst, should it?
> Because currently the fork has zero adoption and no momentum, whereas the existing driver has a huge install base of people who expect to continue to receive updates going forward.
>
> Not that it couldn't ever be the main branch, but I think you guys are jumping the gun by a lot.  And I'm even a fan of doing the cool new shiny stuff.
>
> The existing driver is tried and true, and I think for a project of PG-JDBC's stature it's going to take a lot more than an alpha driver codebase to switch the project over like that.
>
>
>
>


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (76+ messages)  latest in thread

Message-ID: <51CC33CF.3030708@ahastie.net>
Permalink:  ../51CC33CF.3030708@ahastie.net/
Also on:    postgresql.org/message-id/51CC33CF.3030708@ahastie.net

 · 

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: andrew@ahastie.net
  Subject: Re: JDBC 4 Compliance
  In-Reply-To: <51CC33CF.3030708@ahastie.net>
  References: <4B8A7D9B462A43EFBAFB9993F4B086BE@polaris> <293F2084889C4DB797EB047AE5BF8410@polaris> <24064BE7-766E-4B4A-923D-C22771D06D35@me.com> <CADK3HHKLY4XAojuRei6EnNd2z-YLS7ZO3996g04hzKNGdVzwHA@mail.gmail.com> <51C72336.4090806@ttc-cmc.net> <CADK3HHKAfhQ0j6Rt3EXyB+U6-hoaahCuE7+SQ--6WPo06LUw1g@mail.gmail.com> <A2B35D2698B0C74F9B8333525E67ED013668AC43@plindyexch02.polarislabs.lan> <CADK3HH+z8xKTZaQ2ZCtSzc4tf8h3hmq7K6stqCSe2ncH6zxvRg@mail.gmail.com> <51C8890F.2040403@polarislabs.com> <51C93D64.2050807@vmware.com> <CADK3HHL9n1j+MnH8tvSZiqNePTF9imar4waDV7Z2qRSxN2-N4Q@mail.gmail.com> <51CAEF84.9070106@mlfowler.com> <51CB178C.9030603@ttc-cmc.net> <CAC92xsoF52Oh7tAerAFODF82maSVkh8+nchea9OdcD61nXgpcg@mail.gmail.com> <51CB4AEC.6060706@ttc-cmc.net> <CAHpHs3=aR72t6DqYTUG6p5PVG6-Qp9zhmiiQpsZuFxNXPTvnkw@mail.gmail.com> <D136672A-52A0-4791-B537-DB06F51FAFDF@hub.org> <7FF12CB8-374C-4043-931D-C66432505924@gmail.com> <51CC33CF.3030708@ahastie.net>

* 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