Re: Money type todos?

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: Money type todos?
Дата
Msg-id 4600B5DF.4090008@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: Money type todos?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Money type todos?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane skrev:
>> The money type is considered deprecated. I was also under the impression
>> it would be eventually removed. Why are we accumulating TODOs for it?
> 
> Because doing the TODOs would remove the reasons for deprecating it.
> 
> Whether it is actually ever going to disappear is not agreed upon.


What is the reason to keep it? The arguments I've seen is that numeric 
is too slow to use when you have a lot of money calculations to perform.

But with that argument we should instead make a general artitmetic type 
that is fast and useful to more things than just money. Just drop the 
currency from money and we have one such type.

Would we accept other money-like types, with other units? Like kilogram,  liter, yards, square meters, and so on? And
whatuse is the unit in 
 
money? It's not like it will do currency conversion or anything like that.

I think money should go away and the database should provide more 
general types.

/Dennis


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: CREATE INDEX and HOT - revised design
Следующее
От: "Pavan Deolasee"
Дата:
Сообщение: HOT WIP Patch - Version 5.0