Re: [BUGS] BUG #14894: Data Type Money

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [BUGS] BUG #14894: Data Type Money
Дата
Msg-id CAKFQuwbL5y2dsoFCR86zBnFrB_tDU=5k3ETEspqC8VfB_RynvQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #14894: Data Type Money  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
On Thursday, November 9, 2017, John R Pierce <pierce@hogranch.com> wrote:
use NUMERIC(19,4)...    the MONEY type really should be deprecated


I find it has strong, if limited, usefulness when input data is a currency string and you want to directly parse it into a table as an amount and not text which you then have to post-process.  If your input is already a pure number then numeric is a far better choice.

David J.

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: [BUGS] BUG #14894: Data Type Money
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash