Re: Domains (was Re: int1?)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
Cc: PgSQL General ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: Domains (was Re: int1?)
Date: 2003-10-09 19:49:07
Message-ID: Pine.LNX.4.44.0310092148450.32317-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marek Lewczuk 2003-10-09 19:52:58 SQL query problem
Previous Message Bruno Wolff III 2003-10-09 19:46:33 Re: Domains (was Re: int1?)