Custom collations, collation modifiers (eg case-insensitive) - Mailing list pgsql-hackers

From Craig Ringer
Subject Custom collations, collation modifiers (eg case-insensitive)
Date
Msg-id 52C0C31C.4060804@2ndquadrant.com
Whole thread Raw
Responses Re: Custom collations, collation modifiers (eg case-insensitive)
List pgsql-hackers
One of the big appeals of the new COLLATE feature was, to me, the
possibility that we'd be able to support custom collations including
case-insensitive collations in future.

It's something I'd like to tackle one day, and in the mean time want to
pop on the TODO so it's not lost and forgotten. Everyone OK with that?


[TODO] User-defined collations or collation modifiers/filters

[TODO] Provide a built-in case-insensitive collation modifier, i.e.
COLLATE ... CASE INSENSITIVE, or current-collation case insensitive as
COLLATE CASE INSENSITIVE.


Case insensitive collation could be implemented as a collation filter,
where both inputs are transformed using the supplied function before
being passed to the system collation support. The most obvious being
"lower() both inputs".

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: XML Issue with DTDs
Next
From: Craig Ringer
Date:
Subject: Re: Custom collations, collation modifiers (eg case-insensitive)