Re: How can I get a column INT4 to be UNSIGNED ? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: How can I get a column INT4 to be UNSIGNED ?
Date
Msg-id 200304152124.h3FLOsm09942@candle.pha.pa.us
Whole thread Raw
In response to Re: How can I get a column INT4 to be UNSIGNED ?  (Ron Johnson <ron.l.johnson@cox.net>)
Responses Re: How can I get a column INT4 to be UNSIGNED ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Ron Johnson wrote:
> On Fri, 2003-04-11 at 16:09, Dennis Gearon wrote:
> > If he wants the full range of an INT4 unsigned,  he needs to go to INT8 with the
> > constraint you mentioned. The underlying col type of INT4 only supports HALF of
> > the range of an INT4 unsigned, in the positive domain, that is.
>
> When domains allow CHECK constraints, that would be simplified, wouldn't
> it?

I thought we did support it:

    test=> CREATE DOMAIN unsigned AS int4 CHECK ( VALUE > 0);
    CREATE DOMAIN

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


pgsql-general by date:

Previous
From: Medi Montaseri
Date:
Subject: Re: Postgres Compare
Next
From: Bruce Momjian
Date:
Subject: Re: OT: mail server blocked