Search Postgresql Archives

Re: store key name pattern search

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you 


— Armand


On Apr 4, 2017, at 10:50 AM, Oleg Bartunov <obartunov@xxxxxxxxx> wrote:


On Tue, Apr 4, 2017 at 11:41 AM, Armand Pirvu (home) <armand.pirvu@xxxxxxxxx> wrote:
Hi

I have the following case


select * from foo;
                                      col1
---------------------------------------------------------------------------------
 "show_id"=>"1", "group_id"=>"32", "group_name"=>"slb", "group_add_by"=>"557651"
 "show_id"=>"2", "group_id"=>"33", "group_name"=>"slc", "item_add_by"=>"557652"
(2 rows)

Is there anyway I can do a pattern search by hstore key name something like

select * from foo where skeys(col1) like '%add_by%';

I looked on the doc but did not see anything , or did I miss it ?

No. You may convert to json and use jsquery
https://github.com/postgrespro/jsquery

Thanks

Armand



--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux