Re: signed/unsigned integers

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Roger Mathis <traderx(at)gmx(dot)ch>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: signed/unsigned integers
Date: 2002-08-29 13:41:29
Message-ID: 20020829134129.GA9800@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Aug 23, 2002 at 11:11:51 +0200,
Roger Mathis <traderx(at)gmx(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-08-29 15:16:20 Re: [SQL] LIMIT 1 FOR UPDATE or FOR UPDATE LIMIT 1?
Previous Message Yon Den Baguse Ngarso 2002-08-29 06:14:58 Re: SELECT ... WHERE ... NOT IN (SELECT ...);