| От | Alessio Bragadini |
|---|---|
| Тема | Re: unique index doesn't accept functions on fields |
| Дата | |
| Msg-id | 3B5BDA79.42D9E9A6@albourne.com обсуждение исходный текст |
| Ответы |
RE: Re: unique index doesn't accept functions on fields
|
| Список | pgsql-hackers |
Domingo Alvarez Duarte wrote: > 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)) > ); Have you tried to just CREATE TABLE and later CREATE INDEX UNIQUE USING... ? -- Alessio F. Bragadini alessio@albourne.com APL Financial Services http://village.albourne.com Nicosia, Cyprus phone: +357-2-755750 "It is more complicated than you think" -- The Eighth Networking Truth from RFC 1925
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера