From: dmp <danap@ttc-cmc.net>
To: Christopher BROWN <brown@reflexe.fr>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: SQLJSON
Date: Wed, 01 Jul 2015 09:33:28 -0600
Message-ID: <55940848.4080606@ttc-cmc.net> (raw)
In-Reply-To: <CAHL_zcPX-+1GnsDviMfuB3OeLwtsmuATAyYwcBJwJHAujRU3Kw@mail.gmail.com>
References: <CADK3HH+RBjfo7gp3k-DSZYiZ-qS1BcS-OjG3xAgJhJDHbkgo_Q@mail.gmail.com>
<CAHL_zcNbBhYh186q6sMdoG59BB8zhW3TG2s_Prnts3yuJzNQRA@mail.gmail.com>
<558FC12E.8010107@8Kdata.com>
<000301d0b187$aeb51a30$0c1f4e90$@eu>
<558FC4E1.7020005@8Kdata.com>
<001301d0b1b4$7f0862b0$7d192810$@eu>
<5590458C.3040805@8Kdata.com>
<002901d0b288$52a8e080$f7faa180$@eu>
<5591960B.7070406@8Kdata.com>
<007c01d0b2a3$9614bfe0$c23e3fa0$@eu>
<5591ADFD.8000304@8Kdata.com>
<000301d0b2b4$042a41c0$0c7ec540$@eu>
<5591C898.8090102@8Kdata.com>
<CAB=Je-H-tgJ-hGUqWk83A4M7mheBELGUXKj2qe4ECbVPeyaebA@mail.gmail.com>
<CAHpHs3kMk7ykZg=KgB-j5_qHfg7JjDubJNhgJQFCs5eTzuL0tQ@mail.gmail.com>
<559243A5.4020708@8Kdata.com>
<CAB=Je-EHCfpPGqfmmAYFnu=FwE9jTH6y_=OWBz1XdYZSeOve+Q@mail.gmail.com>
<55927EA6.2050905@8Kdata.com>
<CABWW-d3ZOzxk0WQ237Gv7CZ3+L1-se1KP=oeWVNb9a9hTffHSg@mail.gmail.com>
<CADK3HHJezjgD0eWj_K3Vh3_4-aA-A_s1Uu-43-GS7ckMw49dyg@mail.gmail.com>
<CAHL_zcPX-+1GnsDviMfuB3OeLwtsmuATAyYwcBJwJHAujRU3Kw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Christopher BROWN wrote:
> Hello,
>
> JSR 353 does not address things like JSON schemas (there is no standard at this
> time, but this may change, and there are many non-standard implementations) or
> binary encoding formats (again, no current standard, but several
> implementations). So there is scope for the API to change, with
> forward-compatibility issues especially if there are classloader conflicts.
>
> Bundling the API by default may indeed cause harm if the application already has
> JSONP in the classpath (highly likely in Java EE environments, and already the
> case in many OSGi environments). I wouldn't mind making things easy for users
> by bundling it if it had no side effects for other users, but it WILL, and
> that'll happen with the current API, not just potential forward-compatibility
> issues. It's not a neutral packaging issue, and those that are against it are
> not just motivated by ivory-tower engineering. Indeed, instead of a clear
> linkage error, users who don't read the famous manual and who don't really know
> about how classloading works, will have much greater difficulty understanding
> and resolving such problems.
>
> As Markus informed us by forwarding Lance Andersen's opinion (he's the JDBC spec
> lead):
> http://www.postgresql.org/message-id/007701d0b2b6$4cc930b0$e65b9210$@eu
>
> ...it is expected that the client application provide the classes, not the
> driver. This can be done by overloading the getObject() methods (not the
> default one; if this is change, then the change should only be activated by a
> connection property to maintain backwards compatibility). Furthermore, in the
> case of injected drivers (JNDI, Spring, other pools), you won't even have
> PostgreSQL in the classpath, so to use JSONP, you'll need to add the API in your
> classpath... but because your JSONP classes are not loaded from the same source
> as the driver-bundled ones, the JVM will consider them as different, and it just
> won't work, even with identical class names.
>
> So, why deviate from JDBC standard practice, why trip up those that already have
> an application server or an imposed enterprise framework providing such classes,
> why make life difficult for those who actually read the documentation (I'm
> talking about just the "getting started" and possibly even "how to define a
> PostgreSQL JDBC URL...", not even dreaming of a developer reading beyond that),
> or even that category of users who just use brute force to stick a load of
> ".jars" together "until it works", when in fact for the reasons outlined above
> (and well-stated by many other posters here) even with such good intentions, for
> a large proportion of such users, it in fact won't just work?
>
> I understand the intention, but there's a lot of real-world feedback here
> explaining why, except in the most trivial of situation, it won't just hurt
> "smart" developers, but also hurt a large proportion of those it is intended to
> help?
>
> --
> Christopher
>
+1
danap
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
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: danap@ttc-cmc.net, brown@reflexe.fr
Subject: Re: SQLJSON
In-Reply-To: <55940848.4080606@ttc-cmc.net>
References: <CADK3HH+RBjfo7gp3k-DSZYiZ-qS1BcS-OjG3xAgJhJDHbkgo_Q@mail.gmail.com> <558FC12E.8010107@8Kdata.com> <000301d0b187$aeb51a30$0c1f4e90$@eu> <558FC4E1.7020005@8Kdata.com> <001301d0b1b4$7f0862b0$7d192810$@eu> <5590458C.3040805@8Kdata.com> <002901d0b288$52a8e080$f7faa180$@eu> <5591960B.7070406@8Kdata.com> <007c01d0b2a3$9614bfe0$c23e3fa0$@eu> <5591ADFD.8000304@8Kdata.com> <000301d0b2b4$042a41c0$0c7ec540$@eu> <5591C898.8090102@8Kdata.com> <CAB=Je-H-tgJ-hGUqWk83A4M7mheBELGUXKj2qe4ECbVPeyaebA@mail.gmail.com> <CAHpHs3kMk7ykZg=KgB-j5_qHfg7JjDubJNhgJQFCs5eTzuL0tQ@mail.gmail.com> <559243A5.4020708@8Kdata.com> <CAB=Je-EHCfpPGqfmmAYFnu=FwE9jTH6y_=OWBz1XdYZSeOve+Q@mail.gmail.com> <55927EA6.2050905@8Kdata.com> <CABWW-d3ZOzxk0WQ237Gv7CZ3+L1-se1KP=oeWVNb9a9hTffHSg@mail.gmail.com> <CADK3HHJezjgD0eWj_K3Vh3_4-aA-A_s1Uu-43-GS7ckMw49dyg@mail.gmail.com> <CAHL_zcPX-+1GnsDviMfuB3OeLwtsmuATAyYwcBJwJHAujRU3Kw@mail.gmail.com> <55940848.4080606@ttc-cmc.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