unique index doesn't accept functions on fields

Поиск
Список
Период
Сортировка
От domingo@dad-it.com (Domingo Alvarez Duarte)
Тема unique index doesn't accept functions on fields
Дата
Msg-id 70a76315.0107220216.2dcff192@posting.google.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: jmscott@yahoo.com (jmscott@REMOVEMEyahoo.com)
Дата:
Сообщение: Re: OID wraparound (was Re: pg_depend)
Следующее
От: Eugene Fokin
Дата:
Сообщение: Re: [BUGS] libpgtcl doesn't use UTF encoding of TCL