Re: hstore ==> and deprecate => - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: hstore ==> and deprecate =>
Date
Msg-id BAC80482-D8F5-4375-A6EB-02AC4816DF0B@kineticode.com
Whole thread Raw
In response to Re: hstore ==> and deprecate =>  (Josh Berkus <josh@agliodbs.com>)
Responses Re: hstore ==> and deprecate =>  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Jun 17, 2010, at 1:50 PM, Josh Berkus wrote:

>> It isn't.  || already does what you're saying.
>
> So what *does* it do?

It returns an hstore that's effectively a slice of another hstore. From the docs
(http://developer.postgresql.org/pgdocs/postgres/hstore.html):

'a=>1,b=>2,c=>3'::hstore => ARRAY['b','c','x']

Result is:

'"b"=>"2", "c"=>"3"'::hstore

Best,

David

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: hstore ==> and deprecate =>
Next
From: Robert Haas
Date:
Subject: Re: hstore ==> and deprecate =>