Re: [HACKERS] Re: [SQL] RULE questions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Re: [SQL] RULE questions.
Дата
Msg-id 14220.918747300@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [SQL] RULE questions.  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
Список pgsql-sql
"D'Arcy" "J.M." Cain <darcy@druid.net> writes:
> Second, an option to CREATE INDEX to make the index case insensitive.

That, at least, we can already do: build the index on lower(field) not
just field.  Or upper(field) if that seems more natural to you.

> Also, in a primary key field (or
> unique index) it would be nice if "A" was rejected if "a" already was
> in the database.

Making either of the above a UNIQUE index should accomplish that.

            regards, tom lane

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

Предыдущее
От: pierre@desertmoon.com
Дата:
Сообщение: [SQL] Rule problem (fwd)
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: [HACKERS] Re: [SQL] RULE questions.