Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z99Oe-0007oe-M0 for pgsql-jdbc@arkaria.postgresql.org; Sun, 28 Jun 2015 10:01:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z99Oe-0004ZU-6C for pgsql-jdbc@arkaria.postgresql.org; Sun, 28 Jun 2015 10:01:08 +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 1Z99Ny-00041M-9B for pgsql-jdbc@postgresql.org; Sun, 28 Jun 2015 10:00:26 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z99Nr-0007db-72 for pgsql-jdbc@postgresql.org; Sun, 28 Jun 2015 10:00:25 +0000 Received: by wibdq8 with SMTP id dq8so49087080wib.1 for ; Sun, 28 Jun 2015 03:00:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=yDMNH1nz6DDy8geCZiaLX8ZyfqrHrhVHSNMtPULYhH8=; b=JUdxsX1ri9weC3YddQDryd+lsxqMf0Sp6ldF46yNcz+Sxo/wh5mvzEUmEKL3Wm9awo RWqdtZCmzUDW6jHZP53QATcnfS7HT6VYcZoeFlUipC3MEJPThGVzsHGKR3D/duIZhih4 eweFMCzOKY1Onfwl32vQb/fqi2BbGYCvm8WsQ/5WT6tLpOgu4oaD/p/6aPsmnNaTD9lf MusA4rOpVjDqZMkzgP2VyBVW8EJ7FAsf90h5dryGE1y1fi3dJnpQKsjJi/ArJK6f/vyE LiccCRaAHWpM/TEdFtVAOIfhnTyQRkJiy/hB8lU9QHGh+cume35tpFkZJZhC7qk/mJ5x zHkg== X-Gm-Message-State: ALoCoQnLo5l7+ATr2LYIcNYXFlpTkN4ftZj4WQ0WeVXjg2/xfYCmXixbUBPpT+8FKpFD4EArwrLl X-Received: by 10.180.75.78 with SMTP id a14mr13100346wiw.68.1435485617565; Sun, 28 Jun 2015 03:00:17 -0700 (PDT) Received: from [192.168.43.95] ([31.4.238.29]) by mx.google.com with ESMTPSA id az1sm7192456wib.0.2015.06.28.03.00.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Jun 2015 03:00:16 -0700 (PDT) Message-ID: <558FC5AD.3040908@8Kdata.com> Date: Sun, 28 Jun 2015 12:00:13 +0200 From: =?ISO-8859-1?Q?=C1lvaro_Hern=E1ndez_Tortosa?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: SQLJSON 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> In-Reply-To: <001401d0b187$fe63d080$fb2b7180$@eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -0.3 (/) 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 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, Álvaro -- Álvaro Hernández Tortosa ----------- 8Kdata > > -----Original Message----- > From: pgsql-jdbc-owner@postgresql.org > [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Álvaro Hernández > 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, > > Álvaro > > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc