Re: Case insensitive collation

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Case insensitive collation
Date: 2013-01-18 13:24:51
Message-ID: kdbidk$jhr$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Marcel van Pinxteren, 18.01.2013 14:13:
> Desired behaviour:
> 1. If there is a row with 'ABC' (in a unique column) in the table, a row with 'abc' should not be allowed

That's an easy one:

create unique index on foo (lower(the_column));

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Asia 2013-01-18 14:05:31 Re: Libpq and multithreading
Previous Message Alban Hertroys 2013-01-18 13:19:50 Re: Case insensitive collation