Re: what data type to store fixed size integer?

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Arash pajoohande <apajoohande(at)gmail(dot)com>, "List, Postgres" <pgsql-general(at)postgresql(dot)org>
Subject: Re: what data type to store fixed size integer?
Date: 2011-04-10 12:34:33
Message-ID: 4DA1A3D9.7010301@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/10/2011 07:41 PM, Arash pajoohande wrote:
> hi there
> I wan to store a 10 digits integer in a column of table.
> the data type does not need any arithmetic aperations (as of integers).
> maybe its good to use bigint, but it is Postgres specific and is not
> part of SQL standards
> what is the best data type (fastest) to store it? any help would be
> appreciated.

int8 , which is just another name for bigint. I don't know what the SQL
standard name for the data type is, but I'm pretty sure there is one.
Anyone know the details?

There's also NUMERIC , but it's not exactly fast or space-efficient.

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message kilfdc 2011-04-10 13:04:16 list
Previous Message Arash pajoohande 2011-04-10 11:41:33 what data type to store fixed size integer?