Re: How useful is the money datatype?

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: How useful is the money datatype?
Дата
Msg-id bddc86150910030410i18cdaee8q71df42ae1e594b00@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How useful is the money datatype?  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
Список pgsql-general
2009/10/3 Peter Geoghegan <peter.geoghegan86@gmail.com>

Here's how I represent currency values:

CREATE DOMAIN currency
 AS numeric(10,2);



See, I can understand why someone might take the extra step to create a domain for storing monetary units.  The fact that money is in the documentation, but contains no notes to explain that it's only there for backward-compatibility lead me to wonder if it still had relevance, which I gather it doesn't really.  I'll avoid using it as it only appears to introduce unnecessary limitations with very little advantages.

Thom

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: How useful is the money datatype?
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: How useful is the money datatype?