unique index on more than one field using functions - Mailing list pgsql-sql

From domingo@dad-it.com (Domingo Alvarez Duarte)
Subject unique index on more than one field using functions
Date
Msg-id 70a76315.0107220214.2e699125@posting.google.com
Whole thread Raw
Responses Re: unique index on more than one field using functions
List pgsql-sql
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-sql by date:

Previous
From: Morgan Curley
Date:
Subject: Procedures in views
Next
From: Jan Wieck
Date:
Subject: Re: Possible problems with cyclic references