Re: Domains and supporting functions

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Domains and supporting functions
Дата
Msg-id 20060219124907.GB1323@svana.org
обсуждение исходный текст
Ответ на Domains and supporting functions  (elein <elein@varlena.com>)
Список pgsql-hackers
On Sat, Feb 18, 2006 at 09:27:47PM -0800, elein wrote:
> I've got a domain based on a text type.
> I've overridden the equal operator with
> lower(text) = lower(text).
>
> I created a table containing my new domain type
> and can see that the equals operator is not
> being used to determine uniqueness.

What you want is citext.

http://gborg.postgresql.org/project/citext/projdisplay.php

It is a case-insensetive type with indexing and conparison support.

Domains arn't going to do what you want...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Hallgren
Дата:
Сообщение: Re: Pgfoundry and gborg: shut one down
Следующее
От: Martin Pitt
Дата:
Сообщение: Re: Adding an ignore list to pg_restore, prototype patch #1