Re: hstore improvements?
| От | Andrew Gierth |
|---|---|
| Тема | Re: hstore improvements? |
| Дата | |
| Msg-id | 87zlfpgom8.fsf@news-spur.riddles.org.uk обсуждение исходный текст |
| Ответ на | Re: hstore improvements? ("David E. Wheeler" <david@kineticode.com>) |
| Ответы |
Re: hstore improvements?
|
| Список | pgsql-hackers |
>>>>> "David" == "David E Wheeler" <david@kineticode.com> writes:
> On Mar 13, 2009, at 11:06 AM, Andrew Gierth wrote:>> If there's any other features that people find notably missing>>
fromhstore, I could stick them in too; any requests?
David> Can you create slices? That is, create a new hstore as aDavid> subset of an existing hstore?
ooh. good point. What would be a good operator for that?
I'm thinking that (hstore -> text[]) should probably return text[],
and maybe (hstore => text[]) returning hstore?
i.e.
select ('a=>1,b=>2,c=>3'::hstore) -> ARRAY['a','b']; -- returns '{1,2}'
select ('a=>1,b=>2,c=>3'::hstore) => ARRAY['a','b']; -- returns 'a=>1,b=>2'
(by analogy to the existing operators -> for lookup and => for
construction)
--
Andrew (irc:RhodiumToad)
В списке pgsql-hackers по дате отправления: