Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 3B3BC672B1D for ; Fri, 1 Jun 2012 17:55:29 -0300 (ADT) Received: from mail132.messagelabs.com ([216.82.242.115]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SaYsa-00053v-9R for pgsql-jdbc@postgresql.org; Fri, 01 Jun 2012 20:55:29 +0000 X-Env-Sender: skong@investoranalytics.com X-Msg-Ref: server-8.tower-132.messagelabs.com!1338584113!10531927!2 X-Originating-IP: [216.166.12.31] X-StarScan-Version: 6.5.10; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11638 invoked from network); 1 Jun 2012 20:55:14 -0000 Received: from out001.collaborationhost.net (HELO out001.collaborationhost.net) (216.166.12.31) by server-8.tower-132.messagelabs.com with RC4-SHA encrypted SMTP; 1 Jun 2012 20:55:14 -0000 Received: from AUSP01VMBX04.collaborationhost.net ([10.2.8.82]) by AUSP01MHUB01.collaborationhost.net ([10.2.8.25]) with mapi; Fri, 1 Jun 2012 15:55:02 -0500 From: Shijun Kong To: Craig Ringer , Mikko Tiihonen CC: "pgsql-jdbc@postgresql.org" Date: Fri, 1 Jun 2012 15:55:01 -0500 Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map Thread-Topic: [JDBC] Patch: Add support for hstore extension - and map it to/from java.util.Map Thread-Index: Ac1AONCXPIFR5fPsQBmHxgf14x//9w== Message-ID: In-Reply-To: <4FB9FA49.4070409@ringerc.id.au> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.2.120421 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/9 X-Sequence-Number: 23003 Is it path for 9.1 or 9.2? -Shijun On 5/21/12 4:18 AM, "Craig Ringer" wrote: >On 05/10/2012 05:17 PM, Mikko Tiihonen wrote: >> Hi, >> >> Here is a patch to enable initial support for hstore in the jdbc driver. >> >> With the patch using ResultSet.getObject() on a hstore column and it >> returns a HashMap >> Similarly a Statement.setObject(Map will send the data >> to backend using hstore format. > >That's absolutely brilliant, thankyou! > >Of course, now there's a `json' type that folks will probably use much >of the time instead, not least because it should be easier to work with >from JDBC. I doubt it'll be as efficient and fast as hstore for >single-level key/value info though. > >-- >Craig Ringer > >--=20 >Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >To make changes to your subscription: >http://www.postgresql.org/mailpref/pgsql-jdbc