Re: [HACKERS] Re: [SQL] RULE questions. - Mailing list pgsql-sql

From Tom Lane
Subject Re: [HACKERS] Re: [SQL] RULE questions.
Date
Msg-id 14220.918747300@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] RULE questions.  ("D'Arcy" "J.M." Cain <darcy@druid.net>)
List 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 by date:

Previous
From: pierre@desertmoon.com
Date:
Subject: [SQL] Rule problem (fwd)
Next
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] Re: [SQL] RULE questions.