Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9boG-0002Ux-BX for pgsql-jdbc@arkaria.postgresql.org; Mon, 29 Jun 2015 16:21:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z9boF-0008Hi-GF for pgsql-jdbc@arkaria.postgresql.org; Mon, 29 Jun 2015 16:21:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9boA-0008B7-46 for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 16:21:22 +0000 Received: from smtprelay02.ispgateway.de ([80.67.31.36]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9bo6-0000cv-D7 for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 16:21:20 +0000 Received: from [88.66.24.11] (helo=Zauselmaus) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9bo2-0005Nj-9v for pgsql-jdbc@postgresql.org; Mon, 29 Jun 2015 18:21:14 +0200 From: "Markus KARG" To: "'List'" References: <558ED5A6.4070500@8Kdata.com> <002701d0b104$114cdd60$33e69820$@eu> <558F15C7.5060309@8Kdata.com> <001a01d0b126$1ab09c80$5011d580$@eu> <558F214A.2090802@8Kdata.com> <002901d0b183$53e541b0$fbafc510$@eu> <558FC1ED.3000401@8Kdata.com> <001401d0b187$fe63d080$fb2b7180$@eu> <558FC5AD.3040908@8Kdata.com> <002401d0b1b4$f8941bb0$e9bc5310$@eu> In-Reply-To: Subject: Re: SQLJSON Date: Mon, 29 Jun 2015 18:21:13 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <001801d0b287$9e5e65a0$db1b30e0$@eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01D0B298.61E735A0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdCxtv2Qm6Di2PSHR/uPU9wfj5vg8gA0IV7Q Content-Language: de X-AVK-Virus-Check: AVA 25.2250;789163EA X-AVK-Spam-Check: 1; str=0001.0A0C0203.5591707A.0096,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -1.1 (-) 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 This is a multi-part message in MIME format. ------=_NextPart_000_0019_01D0B298.61E735A0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As I am not a PostgreSQL official, I cannot perform such a poll, as it = certainly has to be conducted using the PostgreSQL homepage and mailing = list. =20 From: pgsql-jdbc-owner@postgresql.org = [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Dave Cramer Sent: Sonntag, 28. Juni 2015 17:27 To: Markus KARG Cc: List Subject: Re: [JDBC] SQLJSON =20 Hi Markus, =20 While I think that would be a wonderful idea, my experience in the last = 15 years of working with this driver is that nobody will respond to your = question. That being said feel free to take a poll, or otherwise solicit = responses.=20 Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca =20 On 28 June 2015 at 11:13, Markus KARG wrote: Wouldn't it be more clever to ask the pgjdbc *users* what *they* expect = to get instead of solely relying upon us three? As the discussion turned = out, we have fundamentally diverse opinions, and I doubt that we will do = it any right if we just do "something" simply for the benefit of writing = "JSON support" on our driver. =20 =20 From: pgsql-jdbc-owner@postgresql.org = [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Dave Cramer Sent: Sonntag, 28. Juni 2015 15:56 To: =C3=81lvaro Hern=C3=A1ndez Tortosa Cc: List Subject: Re: [JDBC] SQLJSON =20 So I think we should support JSR 353 at the very least Whether we extend = the result set or not we can at a minimum return a JsonValue from = getObject =20 I agree with Alvaro, 99% of the users would just like a JsonValue = returned. It would be nice if we could design this so more advanced = users could plug in their parser of choice. Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca =20 On 28 June 2015 at 06:00, =C3=81lvaro Hern=C3=A1ndez Tortosa = wrote: On 28/06/15 11:51, Markus KARG wrote: It is not *us* who let the JSON users down, it is the PostgreSQL = protocol guys who did not add any useful support for JSON. A driver is not a compensation for missing product features, it is just a thin wrapper = around the base product's features. To have proper JSON support at the protocol level (something which = I'd love to have) only translates to more performance, no more = functionality. So is a nice-to-have, not a must-to-have (as is = supporting PostgreSQL's json data types). I mean, what happens if the application shall work with a different = product? If you rely on non-JDBC-features, you're screwed. So a profession application using JSON should ALWAYS come with JSR 253 anyways. We have had to extend JDBC in several ways in the past. We should do = it again, now, in the best possible manner (getObject, PGResultSet, = whatever). And then, if JDBC adds support in the future, retrofit into = it. But not wait until then, because we don't even know if that would = even happen. Cheers, =C3=81lvaro --=20 =C3=81lvaro Hern=C3=A1ndez Tortosa ----------- 8Kdata -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of =C3=81lvaro = Hern=C3=A1ndez Tortosa Sent: Sonntag, 28. Juni 2015 11:44 To: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] SQLJSON On 28/06/15 11:17, Markus KARG wrote: I do not see the benefit of that effort, as getting JSON as a LONG = VARCHAR and then parsing it on behalf of the application is pretty simple and straightforward. My vote would be to not do anything until JDBC 4.3 of JDBC 5.0 provides a standard API for dealing with JSON inside of the driver = or at least PostgreSQL 9.5 or PostgreSQL 10 provides a streaming protocol for JSON and / or XML. Don't do anything? And let Java PostgreSQL users down, without a (driver, supported) means of getting JSON out of their database? So we make the "marketing" that 9.4 is all about jsonb and the NoSQL replacement yet you cannot do JSON with Java? Really? User's don't care about extreme performance. Users care about easy of use and decent set of features. Adding JSON support, even thought it's not the most performant one is something we should be doing as quickly as possible. Regards, =C3=81lvaro --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc =20 =20 ------=_NextPart_000_0019_01D0B298.61E735A0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

As I am not a PostgreSQL official, I cannot perform such a poll, as = it certainly has to be conducted using the PostgreSQL homepage and = mailing list.

 

From:= = pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] = On Behalf Of Dave Cramer
Sent: Sonntag, 28. Juni 2015 = 17:27
To: Markus KARG
Cc: List
Subject: = Re: [JDBC] SQLJSON

 

Hi = Markus,

 

While I think that would be a wonderful idea, my = experience in the last 15 years of working with this driver is that = nobody will respond to your question. That being said feel free to take = a poll, or otherwise solicit = responses. 


Dave = Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

 

On 28 = June 2015 at 11:13, Markus KARG <markus@headcrashing.eu> = wrote:

Wouldn't it be more clever to ask the pgjdbc *users* what *they* = expect to get instead of solely relying upon us three? As the discussion = turned out, we have fundamentally diverse opinions, and I doubt that we = will do it any right if we just do "something" simply for the = benefit of writing "JSON support" on our = driver.

 

 

From:= pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of = Dave Cramer
Sent: Sonntag, 28. Juni 2015 = 15:56
To: =C3=81lvaro Hern=C3=A1ndez Tortosa
Cc: = List
Subject: Re: [JDBC] SQLJSON

 <= /o:p>

So I think = we should support JSR 353 at the very least Whether we extend the result = set or not we can at a minimum return a JsonValue  from = getObject

 <= /o:p>

I agree = with Alvaro, 99% of the users would just like a JsonValue returned. It = would be nice if we could design this so more advanced users could plug = in their parser of choice.


Dave = Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

 <= /o:p>

On 28 June = 2015 at 06:00, =C3=81lvaro Hern=C3=A1ndez Tortosa <aht@8kdata.com> = wrote:


On = 28/06/15 11:51, Markus KARG wrote:

It is not = *us* who let the JSON users down, it is the PostgreSQL protocol
guys = who did not add any useful support for JSON. A driver is not = a
compensation for missing product features, it is just a thin = wrapper around
the base product's features.

  =   To have proper JSON support at the protocol level (something = which I'd love to have) only translates to more performance, no more = functionality. So is a nice-to-have, not a must-to-have (as is = supporting PostgreSQL's json data types).


I mean, = what happens if the application shall work with a different = product?
If you rely on non-JDBC-features, you're screwed. So a = profession
application using JSON should ALWAYS come with JSR 253 = anyways.

  =   We have had to extend JDBC in several ways in the past. We should = do it again, now, in the best possible manner (getObject, PGResultSet, = whatever). And then, if JDBC adds support in the future, retrofit into = it. But not wait until then, because we don't even know if that would = even happen.

    Cheers,



  =   =C3=81lvaro


--
=C3=81lvaro Hern=C3=A1ndez = Tortosa


-----------
8Kdata


-----Ori= ginal Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of = =C3=81lvaro Hern=C3=A1ndez
Tortosa
Sent: Sonntag, 28. Juni 2015 = 11:44
To: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] = SQLJSON


On 28/06/15 11:17, Markus KARG = wrote:

I do not = see the benefit of that effort, as getting JSON as a LONG VARCHAR
and = then parsing it on behalf of the application is pretty simple = and
straightforward. My vote would be to not do anything until JDBC = 4.3 of

JDBC

5.0 = provides a standard API for dealing with JSON inside of the driver = or

at

least = PostgreSQL 9.5 or PostgreSQL 10 provides a streaming protocol = for

JSON

and / or = XML.

    =   Don't do anything?

      And let Java = PostgreSQL users down, without a (driver, supported)
means of getting = JSON out of their database? So we make the "marketing"
that = 9.4 is all about jsonb and the NoSQL replacement yet you cannot = do
JSON with Java?

      Really?

  =     User's don't care about extreme performance. Users care = about easy
of use and decent set of features. Adding JSON support, = even thought
it's not the most performant one is something we should = be doing as
quickly as possible.

      = Regards,

      =C3=81lvaro




= --

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

 <= /o:p>

 

------=_NextPart_000_0019_01D0B298.61E735A0--