Re: Overlap function for hstore?

Поиск
Список
Период
Сортировка
От Paul Jungwirth
Тема Re: Overlap function for hstore?
Дата
Msg-id 551F382F.6090703@illuminatedcomputing.com
обсуждение исходный текст
Ответ на Overlap function for hstore?  (Stefan Keller <sfkeller@gmail.com>)
Список pgsql-general
 > This underfits:
 >
 > postgres=# select hstore_to_array('a=>1,b=>2,c=>3'::hstore) &&
 > hstore_to_array('a=>2,d=>4,b=>2'::hstore)
 >
 > ...because array overlaps op takes every element (even 'a' or 2 alone)
 > and doesn't test for key and value together like in 'b=>2'!

How about hstore_to_matrix? Then you have a tuple for each key/value pair.

Paul




В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Curvey
Дата:
Сообщение: "could not split GIN page; no new items fit"
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Overlap function for hstore?