Re: what data type to store fixed size integer?

Поиск
Список
Период
Сортировка
Искать
От
Craig Ringer
Тема
Re: what data type to store fixed size integer?
Дата
Msg-id
4DA1A3D9.7010301@postnewspapers.com.au
Ответ на
Список
Дерево обсуждения
what data type to store fixed size integer? Arash pajoohande <apajoohande@gmail.com>
Re: what data type to store fixed size integer? "David Johnston" <polobo@yahoo.com>
Re: what data type to store fixed size integer? Arash pajoohande <apajoohande@gmail.com>
Re: what data type to store fixed size integer? "David Johnston" <polobo@yahoo.com>
Re: what data type to store fixed size integer? Craig Ringer <craig@postnewspapers.com.au>
Re: what data type to store fixed size integer? Tom Lane <tgl@sss.pgh.pa.us>
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
В списке pgsql-general по дате отправления
От: Arash pajoohande
Дата:
От: kilfdc
Дата:
Сообщение: list
FAQ