Re: [PATCHES] Fixes for MONEY type using locale

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Fixes for MONEY type using locale
Дата
Msg-id 9506.1196132691@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Fixes for MONEY type using locale  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: [PATCHES] Fixes for MONEY type using locale  (Bruce Momjian <bruce@momjian.us>)
Re: [PATCHES] Fixes for MONEY type using locale  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> Well if we are going to continue to support money (which I am against)
> we should support the casting to numeric as that is by far a more
> common implementation of money and we will have mixed environments.

So, you don't use MONEY, and you don't want to, but nonetheless you
know better than the people who do use MONEY what they need.

Aside from the semantic-gap issue, there is the point that providing
a cast might actually mask application errors.  I can well imagine
cases where one of the reasons for using MONEY is *exactly* that it's
not a plain number or easily convertible to one.
        regards, tom lane


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [PATCHES] Fixes for MONEY type using locale
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Proposed patch for operator lookup caching