Prefix search on all hstore values

Поиск
Список
Период
Сортировка
От Albert Chern
Тема Prefix search on all hstore values
Дата
Msg-id CAEg5N0_6RX1D6_JqrDF8bDwjjkL2Ez4trxsZzEituFP3Ahne_w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Prefix search on all hstore values  (Sergey Konoplev <gray.ru@gmail.com>)
Re: Prefix search on all hstore values  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-general
Hi,

I have an hstore column that stores a string in several arbitrary languages, so something like this:

"en" => "string in english", "zh" => "string in chinese", "fr" => "string in french"

Is it possible to construct an index that can be used to determine if a query string is a prefix of ANY of the values in the hstore?  From reading the documentation the closest I've gotten is a gin index after converting the values to an array, but that doesn't seem to work with prefix searching.  Any pointers would be much appreciated!

Thanks,
Albert

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

Предыдущее
От: "Tomas Vondra"
Дата:
Сообщение: Re: ERROR: out of memory DETAIL: Failed on request of size ???
Следующее
От: Zev Benjamin
Дата:
Сообщение: unnest on multi-dimensional arrays