From: Shijun Kong <skong@investoranalytics.com>
To: Craig Ringer <ringerc@ringerc.id.au>
To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map
Date: Fri, 1 Jun 2012 15:55:01 -0500
Message-ID: <CBEEA3D1.AA4D%skong@investoranalytics.com> (raw)
In-Reply-To: <4FB9FA49.4070409@ringerc.id.au>
Is it path for 9.1 or 9.2?
-Shijun
On 5/21/12 4:18 AM, "Craig Ringer" <ringerc@ringerc.id.au> 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<String, String>
>> Similarly a Statement.setObject(Map<Object,Object> 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
>
>--
>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: skong@investoranalytics.com, ringerc@ringerc.id.au, mikko.tiihonen@nitorcreations.com
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map
In-Reply-To: <CBEEA3D1.AA4D%skong@investoranalytics.com>
References: <4FB9FA49.4070409@ringerc.id.au> <CBEEA3D1.AA4D%skong@investoranalytics.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