pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <Mikko.Tiihonen@nitorcreations.com>
To: Kevin Wooten <kdubb@me.com>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: [JDBC] Pipelining executions to postgresql server
Date: Tue, 4 Nov 2014 20:20:04 +0000
Message-ID: <1415132403633.89501@nitorcreations.com> (raw)
In-Reply-To: <C86F78CE-E004-4CED-A098-1B3F0EB42CA5@me.com>
References: <1414850643686.34687@nitorcreations.com>
	<20141101173116.GR13584@awork2.anarazel.de>
	<1414930308808.49160@nitorcreations.com>
	<20141102122320.GB28295@alap3.anarazel.de>
	<1414934833900.88748@nitorcreations.com>
	<545790D8.9090201@2ndquadrant.com>
	<1415058981678.77807@nitorcreations.com>
	<54588668.2090305@2ndquadrant.com>
	<C86F78CE-E004-4CED-A098-1B3F0EB42CA5@me.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Kevin Wooten <kdubb@me.com> wrote:
> > On Nov 4, 2014, at 12:55 AM, Craig Ringer <craig@2ndquadrant.com> wrote:
> >
> > I have to say I like some aspects of how pgjdbc-ng is being done - in
> > particular use of Maven and being built around non-blocking I/O.
> >
> > OTOH, the use of Google Guava I find pretty inexplicable in a JDBC
> > driver, and since it hard-depends on JDK 7 I don't understand why Netty
> > was used instead of the async / non-blocking features of the core JVM.
> > That may simply be my inexperience with writing non-blocking socket I/O
> > code on Java though.
> >

Java6 has been EOL since 2011 and Java7 is EOL in less than 6 months. I think
that depending on old Java 7 version that soon should not even be used in
production (without paying for extra support) can hardly be too hard requirement.

> It confuses me as to why you consider using stable, well implemented, well tested and well cared for libraries as inexplicable.  > Just because we are building a “driver” means we have to write every line of code ourselves?  No thanks.

Embedding parts of other projects into code-base during build with renamed packages is nowadays common practice in java projects: spring does it, elasticsearch embeds whole netty and more, even jre embeds for example xerces and asm.
It might not be the optimal solution, but still definitely better than writing everything from scratch or copy-pasting code from other projects.

If pgjdbc-ng provides both a thin maven version (with external versioned dependencies) and a fat-jar with the external versions repackaged inside the users can choose either old way: just-drop-a-jdbc-jar-into-project or new way with their chosen build tool that automatically manages the dependencies.

-Mikko

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



view thread (18+ messages)

Message-ID: <1415132403633.89501@nitorcreations.com>
Permalink:  ../1415132403633.89501@nitorcreations.com/
Also on:    postgresql.org/message-id/1415132403633.89501@nitorcreations.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: Mikko.Tiihonen@nitorcreations.com, kdubb@me.com, craig@2ndquadrant.com, andres@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: [JDBC] Pipelining executions to postgresql server
  In-Reply-To: <1415132403633.89501@nitorcreations.com>
  References: <1414850643686.34687@nitorcreations.com> <20141101173116.GR13584@awork2.anarazel.de> <1414930308808.49160@nitorcreations.com> <20141102122320.GB28295@alap3.anarazel.de> <1414934833900.88748@nitorcreations.com> <545790D8.9090201@2ndquadrant.com> <1415058981678.77807@nitorcreations.com> <54588668.2090305@2ndquadrant.com> <C86F78CE-E004-4CED-A098-1B3F0EB42CA5@me.com> <1415132403633.89501@nitorcreations.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