RE: Re: unique index doesn't accept functions on fields

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема RE: Re: unique index doesn't accept functions on fields
Дата
Msg-id ECEHIKNFIMMECLEBJFIGOEFGCBAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: unique index doesn't accept functions on fields  (Alessio Bragadini <alessio@albourne.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))
> >   );
> 
> Have you tried to just CREATE TABLE and later CREATE INDEX UNIQUE
> USING... ?

Postgres does not support functional indexing on multi-key indices.

Chris



В списке pgsql-hackers по дате отправления:

Предыдущее
От: reina@nsi.edu (Tony Reina)
Дата:
Сообщение: Does/Can PG store administrative statistics?
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: RE: OID wraparound (was Re: pg_depend)