Prefix search on all hstore values

From: Albert Chern <albert(dot)chern(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Prefix search on all hstore values
Date: 2013-11-28 02:49:50
Message-ID: CAEg5N0_6RX1D6_JqrDF8bDwjjkL2Ez4trxsZzEituFP3Ahne_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zev Benjamin 2013-11-28 07:05:10 unnest on multi-dimensional arrays
Previous Message Bruce Momjian 2013-11-28 02:27:06 Re: [GENERAL] pg_upgrade ?deficiency