Re: [HACKERS] Datatype MONEY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Datatype MONEY
Дата
Msg-id 11872.945101510@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Datatype MONEY  (Michael Meskes <meskes@postgreSQL.org>)
Список pgsql-hackers
Michael Meskes <meskes@postgreSQL.org> writes:
> BTW could anyone tell me how exactly NUMERIC is stored? Just for curiosity.

I believe it's a simple-minded BCD format, one decimal digit per byte.

Jan has been muttering about reimplementing it as radix-10000, storing
four decimal digits per short instead of one per byte; that'd reduce
the number of iterations in the inner calculation loops by 4x, without
making the elementary steps noticeably more expensive on modern hardware...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] update_pg_pwd
Следующее
От: Gunther Schadow
Дата:
Сообщение: Re: [HACKERS] Datatype MONEY