Re: signed/unsigned integers - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: signed/unsigned integers
Date
Msg-id 20020829134129.GA9800@wolff.to
Whole thread Raw
In response to signed/unsigned integers  ("Roger Mathis" <traderx@gmx.ch>)
List pgsql-sql
On Fri, Aug 23, 2002 at 11:11:51 +0200, Roger Mathis <traderx@gmx.ch> wrote:
> Hi
> 
> Is it true, that I can't define unsigned integers in a table definition?

If the main issue is that there not be negative numbers, you can use a
constraint to enforce this. In 7.3 you can define a domain with the
constraint and use it similar to a type.

If you need 32-63 bits worth of information, then you can use bigint with
some performance penalty. If you need 64 bits or more of information,
then you might be able to use numeric with an even larger performance hit.


pgsql-sql by date:

Previous
From: "Roger Mathis"
Date:
Subject: signed/unsigned integers
Next
From: "Thomas F. O'Connell"
Date:
Subject: the optimizer and exists