unique index with bool

Поиск
Список
Период
Сортировка
От tmpmac@mac.com
Тема unique index with bool
Дата
Msg-id 2792646.1116514167009.JavaMail.tmpmac@mac.com
обсуждение исходный текст
Ответы Re: unique index with bool  (Richard Huxton <dev@archonet.com>)
Re: unique index with bool  (Alban Hertroys <alban@magproductions.nl>)
Re: unique index with bool  (Scott Marlowe <smarlowe@g2switchworks.com>)
Re: unique index with bool  (Stuart Bishop <stuart@stuartbishop.net>)
Список pgsql-general
CREATE UNIQUE INDEX name on table(param1,param2);

How to create such unique index when param2 is bool type, and this param2 should be accepted only in case of true ?

I tried: CREATE UNIQUE INDEX name on table(param1,(param2 = 'true'));
but it's not working.

Regards,
Mac

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

Предыдущее
От: lister
Дата:
Сообщение: Shared memory and FreeBSD's jail()
Следующее
От: Stephen Aaron Knott
Дата:
Сообщение: TSearch2 & Phonemes