Re: constraints on composite types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: constraints on composite types
Дата
Msg-id 10936.1126279764@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: constraints on composite types  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Richard Huxton <dev@archonet.com> writes:
> Tom Lane wrote:
>> I don't believe you need the function -- this should be enough:
>>
>> CREATE UNIQUE INDEX t1_b_uniq ON t1 ((attr.foo));

> I got: Relation "attr" does not exist (on 8.1 beta)

Sorry, make that

CREATE UNIQUE INDEX t1_b_uniq ON t1 (((attr).foo));

            regards, tom lane

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

Предыдущее
От: Roman Neuhauser
Дата:
Сообщение: Re: constraints on composite types
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: constraints on composite types