Re: Domains (was Re: int1?) - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Domains (was Re: int1?)
Date
Msg-id Pine.LNX.4.44.0310092148450.32317-100000@peter.localdomain
Whole thread Raw
In response to Domains (was Re: int1?)  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-general
Ron Johnson writes:

> test1=# create domain d_tinyint as smallint constraint chk_tinyint CHECK (smallint between 0 and 255);
> ERROR:  DefineDomain: CHECK Constraints not supported
>
> So, how would I create a domain that limits a smallint?

You would have to wait for PostgreSQL 7.4.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Domains (was Re: int1?)
Next
From: Gene Vital
Date:
Subject: Re: Parent Id