Re: constraints on composite types - Mailing list pgsql-general

From Tom Lane
Subject Re: constraints on composite types
Date
Msg-id 10936.1126279764@sss.pgh.pa.us
Whole thread Raw
In response to Re: constraints on composite types  (Richard Huxton <dev@archonet.com>)
List 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 by date:

Previous
From: Roman Neuhauser
Date:
Subject: Re: constraints on composite types
Next
From: Michael Fuhr
Date:
Subject: Re: constraints on composite types