Re: How many memory size takes numeric(3,0) ?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: How many memory size takes numeric(3,0) ?
Дата
Msg-id Pine.LNX.4.44.0309032208550.1035-100000@peter.localdomain
обсуждение исходный текст
Ответ на How many memory size takes numeric(3,0) ?  ("Bruno BAGUETTE" <pgsql-ml@baguette.net>)
Список pgsql-general
Bruno BAGUETTE writes:

> How many memory does take numeric(3,0) ?
> Is it smaller than INT2 that takes 2 octets ?

numeric(x) takes about 10 + x/2 bytes in 7.3.  I'm too lazy to calculate
it exactly, but int2 surely beats numeric in storage size and it kills it
in performance.  The documentation contains information about choosing the
most appropriate data type:

http://www.postgresql.org/docs/7.3/static/datatype.html#DATATYPE-NUMERIC

--
Peter Eisentraut   peter_e@gmx.net


В списке pgsql-general по дате отправления:

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: Commercial postgresql
Следующее
От: Jonathan Bartlett
Дата:
Сообщение: Re: Using oids