NUMERIC size

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема NUMERIC size
Дата
Msg-id CAHGQGwGupGaNmQQHHhm783j9vMiNYtPFZaE0eKwsCLGwMU2x+Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: NUMERIC size  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-docs
Hi,

> Numeric values are physically stored without any extra leading or
> trailing zeroes. Thus, the declared precision and scale of a column
> are maximums, not fixed allocations. (In this sense the numeric type
> is more akin to varchar(n) than to char(n).) The actual storage
> requirement is two bytes for each group of four decimal digits,
> plus five to eight bytes overhead.

The last sentence of the above seems not to be correct. Because,
thanks to the reduction of NUMERIC size (committed in 9.1), its header
size is three, five or eight for now. Attached patch fixes this.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Update documentation wrt visibility map/index-only scans
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Cannot build docs on Ubuntu 10.04?