Case insensitive hstore.

From: Glenn Pierce <glennpierce(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Case insensitive hstore.
Date: 2013-02-15 15:51:39
Message-ID: CAM5ipV8rU0OXaDtuJyyr+U6JmKaeXrjgaDn0F=hsupax18eY0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

Does anyone know how one would
select from a table with a hstore field treating the key of the hstore as
case insensitive.

ie

SELECT id, lower(additional_info->'type') AS type FROM table

I would like this to work even if if the store tyoe is

'Type' -> 'original'

failing that is there a way to lowercase the keys and values of the hstore
field of the entire table ?

Thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mustachebrownbear 2013-02-15 16:04:08 Re: How to create trigger if it does not exist
Previous Message Tom Lane 2013-02-15 15:43:12 Re: Avoiding duplication of code via views -- slower? How do people typically do this?