CIText and pattern_ops

From: Rod Taylor <pg(at)rbt(dot)ca>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: CIText and pattern_ops
Date: 2010-04-24 03:27:53
Message-ID: y2j751261b21004232027xc1979803mc20b2bcd688912c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Is there any particular reason why the citext module doesn't have
citext_pattern_ops operator family?

Specifically, I wish to index for this type of query:

... WHERE citext_column LIKE 'Foo%';

This, of course, is equivalent to ILIKE 'Foo%' which does not appear
to be indexable without using a functional index (
lower(citext_column) ).

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-04-24 03:28:48 Re: global temporary tables
Previous Message Robert Haas 2010-04-24 03:18:29 Re: global temporary tables