unique index doesn't accept functions on fields - Mailing list pgsql-hackers

From domingo@dad-it.com (Domingo Alvarez Duarte)
Subject unique index doesn't accept functions on fields
Date
Msg-id 70a76315.0107220216.2dcff192@posting.google.com
Whole thread Raw
List pgsql-hackers
I'm trying create a unique index using more than one field and
applying a function in one field to achieve case insensitive
uniqueness but postgresql doesn't accept. 

create table a(    id int primary key, id2 int not null, name varchar(50), unique(id2, lower(name)) ); 

Anyone have an idea ?


pgsql-hackers by date:

Previous
From: jmscott@yahoo.com (jmscott@REMOVEMEyahoo.com)
Date:
Subject: Re: OID wraparound (was Re: pg_depend)
Next
From: Eugene Fokin
Date:
Subject: Re: [BUGS] libpgtcl doesn't use UTF encoding of TCL