Re: How can I get a column INT4 to be UNSIGNED ?

From: Dennis Gearon <gearond(at)cvc(dot)net>
To: Kyle <kyle(at)ccidomain(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I get a column INT4 to be UNSIGNED ?
Date: 2003-04-11 21:09:41
Message-ID: 3E972F15.2080803@cvc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Kyle wrote:
> > Is there a reason for not supporting unsigned types?
>
> Maybe I'm off base here, but couldn't you put in a constraint to achieve
> the same effect? In other words require inserted data in that column to
> be > -1 ?
>
> -Kyle
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dennis Gearon 2003-04-11 21:10:41 Re: Case sensitive order by
Previous Message Mike Mascari 2003-04-11 21:02:18 Re: pg_dump: NOTICE: ShmemAlloc: out of memory