I know you can create an index on a field in a hstore column. I know you can also create a GIN index on a array column.
But what is the syntax to create an index on an hstore array?
e.g.
CREATE TABLE customer (
pk serial PRIMARY KEY,
customer hstore,
customer_purchases hstore[]
);
Let's say the customer purchases hstore may be a hash like
productId -> 1
price -> 9.99
and I have an array of those in the customer_purchases hstore[]
I want to create an index on customer.customer_purchases[]-> productId
Is this possible? I've tried different combinations of CREATE INDEX syntaxes and none of them seem to support indexing fields in an hstore array.