Prefix search on all hstore values - Mailing list pgsql-general

From Albert Chern
Subject Prefix search on all hstore values
Date
Msg-id CAEg5N0_6RX1D6_JqrDF8bDwjjkL2Ez4trxsZzEituFP3Ahne_w@mail.gmail.com
Whole thread Raw
Responses Re: Prefix search on all hstore values
Re: Prefix search on all hstore values
List 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 by date:

Previous
From: "Tomas Vondra"
Date:
Subject: Re: ERROR: out of memory DETAIL: Failed on request of size ???
Next
From: Zev Benjamin
Date:
Subject: unnest on multi-dimensional arrays