Re: money type's overflow handling is woefully incomplete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: money type's overflow handling is woefully incomplete
Дата
Msg-id 25615.1513115237@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: money type's overflow handling is woefully incomplete  (Andres Freund <andres@anarazel.de>)
Ответы Re: money type's overflow handling is woefully incomplete  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Long story short, I don't think anyone cares about this enough to
>>> spend effort fixing it.  I suspect the money data type has very few
>>> users.

> I'm unfortunately not so sure :(.

There seem to be enough of them that we get pushback anytime somebody
suggests removing the type.

> The background is that I was working on committing the faster (&
> correct) overflow checks, and wanted to compile postgres with -ftrapv.
> Some rudimentary cash (as well as pgbench, rel/abstime) fixes were
> required to make the tests succeed...

Really?  We've got test cases that intentionally exercise overflow
in the money code?  I think we could just drop such tests, until
such time as someone fixes the issue.

(OTOH, I bet we could drop reltime/abstime without too many complaints.
Y2038 is coming.)

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: plpgsql test layout
Следующее
От: Andres Freund
Дата:
Сообщение: Re: money type's overflow handling is woefully incomplete