Re: Data TYPE Creation

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Guillaume Houssay <ghoussay(at)noos(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Data TYPE Creation
Date: 2003-03-17 13:29:32
Message-ID: 20030317132932.GB19079@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Mar 16, 2003 at 23:39:22 +0100,
Guillaume Houssay <ghoussay(at)noos(dot)fr> wrote:
> I wonder if the following data type is available INT1 (I am using the last version of Postgresql).
> I will have about 90% of my database with numeric values of only 1 byte.
>
> If it does not exist (according to what I read this is the case), is there a way to use another type with the same result ?

You can use a constraint to limit the valid range of integers. Probably
using int2 with a constraint is the best answer for you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-03-17 14:17:51 Re: Data TYPE Creation
Previous Message Joshua Moore-Oliva 2003-03-17 09:39:01 Re: copying between Postgres databases