Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Us9A0-0007M7-W6 for pgsql-jdbc@arkaria.postgresql.org; Thu, 27 Jun 2013 10:10:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Us99z-0000Mn-SM for pgsql-jdbc@arkaria.postgresql.org; Thu, 27 Jun 2013 10:10:39 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Us99x-0000Me-JY for pgsql-jdbc@postgresql.org; Thu, 27 Jun 2013 10:10:37 +0000 Received: from prod2.officenet.no ([195.159.87.246]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Us99s-0004EW-V7 for pgsql-jdbc@postgresql.org; Thu, 27 Jun 2013 10:10:36 +0000 Received: from localhost ([127.0.0.1] helo=prod2) by prod2.officenet.no with esmtp (Exim 4.76) (envelope-from ) id 1Us97o-0004Rr-C3 for pgsql-jdbc@postgresql.org; Thu, 27 Jun 2013 12:08:24 +0200 Date: Thu, 27 Jun 2013 12:08:24 +0200 (CEST) From: Andreas Joseph Krogh To: pgsql-jdbc@postgresql.org Message-ID: In-Reply-To: <51CB8541.3040005@archidevsys.co.nz> Subject: Re: JDBC 4 Compliance MIME-Version: 1.0 X-Mailer: OfficeNet Mail 1.9.0-SNAPSHOT X-Pg-Spam-Score: -2.1 (--) Content-Type: text/html;charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org
P=C3=A5 torsdag 27. juni 2013 kl. 02:20:17, skrev Gavin Flower <GavinFlower= @archidevsys.co.nz>:
On 27/06/13 11:57, Kevin Wooten wrote:
On Jun 26, 2013, at 3:44 PM, Dave Cramer <pg@fastcrypt.com&= gt; wrote:
=C2=A0
Well I'm curious about a few things.
=C2=A0
1) I just tried to build it, given I have no idea how it's = not surprising it failed to build. But there are no clear instructions on h= ow to build it.
=C2=A0
It's a maven build 'mvn package' should suffice. =C2=A0About 4 or 5 other p= eople have contributed in some way and nobody has yet run into issues build= ing the project. =C2=A0You are correct there isn't much documentation for a= nything as I am the only regular contributor it hasn't been necessary. =C2= =A0On the github page there is a link to a snapshot release build for peopl= e to download and try (a single jar).
=C2=A0
2) it appears to pull in at least a few other jars, how big= is it when it's built? I personally use this on an embedded system where s= ize matters
=C2=A0
It only uses Netty for async i/o and Guava for utils (which can be rem= oved). =C2=A0Currently the jar is built using the maven assembly plugin and= produces a large jar because it pulls all of Netty and Guava into it; whic= h is 3.8MB. =C2=A0 Netty and Guava combine to contribute over 3MB of that s= ize but the necessary bits of both projects are small. =C2=A0Switching from= the maven assembly plugin to the maven shade plugin would reduce the size = dramatically as it only pulls in the used class files. =C2=A0My best guess = would be that it ends up around 700k or so. =C2=A0Given that the current dr= iver is around 580k it shouldn't be that much different in the final versio= n.
=C2=A0
3) It's my understanding that there will be resistance by l= arger consumers to using external jars even if they are built into a single= jar.
=C2=A0
I don't care to get into this discussion again. =C2=A0I'll just say th= is=E2=80=A6 Netty is one of the few well respected async i/o libraries out = there. =C2=A0Synchronous i/o is very hard to get right without a framework = and asynchronous i/o is downright impossible. The current driver doesn't us= e async i/o and has to program around deadlocks/stalls related to it's sync= hronous i/o approach; and according to the current code comments doesn't se= em to be completely protected against them. =C2=A0For these reasons, and th= e added benefits of supporting asynchronous notifications from the server m= ake using a library a no-brainer.
=C2=A0
=C2=A0
4) as it appears to only target one JDBC version what is th= e plan to deal with other versions without using abstract classes like the = current jar, and if so how is that any better ?
=C2=A0
To support other JDBC versions I plan to use a maven java preprocessor= plugin rather than the abstract/concrete class approach which make the cod= e very to get introduced to.
=C2=A0
5) does it support all current versions of postgresql (ie b= ack to 8.4) ?
=C2=A0
No. It was written knowing it's adoption would take time and as such I wrot= e it specifically for 9.2+.
=C2=A0
=C2=A0
Lastly, I've never heard of an open source project where a = bunch of totally new people come in and propose forking the project without= any prior commitment to the project ?
=C2=A0
Why is there a big desire to drop the existing code base ju= st to support a few new very unused features (I'm presuming this because th= ere aren't that many requests for them) ?
=C2=A0
=C2=A0
I believe this speaks to the larger point that is at discussion here. = =C2=A0A number of people are/were enthusiastic to help out with the mainstr= eam driver by adding support for new features in PostgreSQL itself and brin= ging the driver up to date with regards to JDBC and other spec. conformance= . =C2=A0Due to the issues =C2=A0and perceptions, that I and others, laid ou= t at the opening of this thread it seems a number of people think this proj= ect is moving at too slow a pace. =C2=A0It also seems that a number of peop= le think that the project could move forward faster by not specifically tyi= ng new development to the mainstream codebase.
=C2=A0
Alas, as we discuss this, it's becoming obvious that point I've been t= rying to make is somewhat failing on deaf ears. =C2=A0The current driver is= a hinderance to people who want to use the new and interesting features of= PostgreSQL. =C2=A0 In my example, UDT's are well supported, and have been = for years, in both PostgreSQL and JDBC but the driver has completely ignore= d them for years as well. =C2=A0 As a person who has implemented these new = features I can tell you a major overhaul in core is required to add these f= eatures properly. =C2=A0All I've heard in response is "don't touch it,= it's stable!". =C2=A0So, I supposed you'll continue by band aiding it= yet again; adding just enough code to claim some level of conformance and = leave it in a state extremely far behind the server itself.
=C2=A0
I want to add one last example to further my point. =C2=A0You asked &q= uot;Why is there a big desire to drop the existing code base just to suppor= t a few new very unused features?". =C2=A0It's not just to support som= e unused features. =C2=A0Java 6/JDBC 4 has been EOL'd by Oracle and this dr= iver hasn't even bothered to support the Java 7/JDBC 4.1 spec. =C2=A0That's= the whole reason this thread got started. Somebody was looking for a featu= re the Java documentation clearly said should be there and could not find i= t. =C2=A0Confusion ensued and now here we are. =C2=A0That, to me, speaks vo= lumes about the lethargic pace of this project.
=C2=A0
My apologies for joining the discussion and especially for my above ra= nt. =C2=A0I never intended to disrupt this project as it appears you believ= e it has. =C2=A0Actually, I intended to come here and help out in an impact= ful way. =C2=A0I wanted a driver that unlocks all the potential of the serv= er that I prefer and instead of complaining, I chose to do something about = it. =C2=A0 At this point it sounds like my best bet is to quietly return to= my work on that project and stop causing a disruption around here. =C2=A0I= will say that I welcome any and all people who would like to join me in my= effort. =C2=A0It seems the political climate is just not there for joining= forces.
=C2=A0
=C2=A0
=C2=A0
Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
=C2=A0
On Wed, Jun 26, 2013 at 6:29 PM, Marc G. Fournie= r <scrappy@hub.org> wrote:
=C2=A0
On 2013-06-26, at 15:15 , Gavin Flower <GavinFlowe= r@archidevsys.co.nz> wrote:
=C2=A0
On 27/06/13 09:45, Stephen Nelson wrote:
In my view the driver has already been forked by= Kevin Wooten so it's more of a case of will it be an official fork or not?= I think it would be a good idea to harness the enthusiasm from the contrib= utors to the newer driver. However I think it would be a shame and a mistak= e to throw away the work that has gone into the stable driver. If it's not = feasible to merge the code of both drivers I do think it would be useful to= share what can be - particularly the functional tests.
=C2=A0
If it is decided to promote both drivers as offi= cial projects I think, for the benefit of the users confused about the choi= ce, that the newer driver be labelled as a beta until such time as everyone= is convinced in its stability and functionality, that it is pushed as the = current driver and then the older one can become legacy.
=C2=A0
My interest in the project has mainly been aroun= d getting the jars automatically uploaded to Maven. I'm interested in revie= wing driver patches but I don't have the knowledge of the protocol at the m= oment to provide any useful feedback other than obvious things. I would lik= e to experiment with an alternative build system called Gradle and get cont= inuous integration and deployment sorted out so that upon check-in the driv= er is built on a variety of platforms, tested on a variety of servers and a= utomatically deployed to Maven central as well as the website. My time is a= bit variable with kids/work/life taking a big chunk of it so I would like = to collaborate with people on the project.=C2=A0
=C2=A0
Cheers,
=C2=A0
Stephen
How about, when Kevin's driver is ready:
  1. recommending the existing driver for JDBC3 and earlier
  2. and Kevin's driver for JDBC4 and greater?
=C2=A0
Why not just create a 'pre-JDBC4 branch for the current official one and im= port Kevin's as JDBC4, for going forward? =C2=A0What I've read seems to ind= icate 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?
=C2=A0
=C2=A0
Kevin, while <= /font>I can give you only moral support - I would really like you to= continue!
=C2=A0
+1 for Kevin's driver and hopefully an actively developed driver.
=C2=A0
I see Kevin's driver also supports Connection.createBlob, which is han= dy for EclipseLink users (which I'm planning on migrating to, from Hibernat= e) as EclipseLink doesn't offer a blog-helper util for creating blobs, like= Hibernate does.
=C2=A0
Kevin; I have quite a large project and I'm willing to give your drive= r a spin. Will give feedback soon.
=C2=A0
--
Andreas Joseph Krogh <andreak@officenet.no>=C2=A0 =C2=A0 =C2=A0 mob: = +47 909 56 963
Senior Software Developer / CTO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc
=C2=A0
=