Re: money type's overflow handling is woefully incomplete - Mailing list pgsql-hackers

From Andres Freund
Subject Re: money type's overflow handling is woefully incomplete
Date
Msg-id 20171212182153.wm7qrwfsfigciuck@alap3.anarazel.de
Whole thread Raw
In response to Re: money type's overflow handling is woefully incomplete  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: money type's overflow handling is woefully incomplete
List pgsql-hackers
Hi,

On 2017-12-12 11:01:04 -0500, Tom Lane wrote:
> 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 :(.


> Somebody did contribute the effort not too long ago to install that
> overflow check into cash_in.  So maybe somebody will step up and fix
> the other money functions.  I can't get too excited about it in the
> meantime.

I can't really either. But I think that kinda suggest we ought to rip
that code out in the not too far away future.

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...

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Jeremy Finzel
Date:
Subject: Backfill bgworker Extension?
Next
From: Chapman Flack
Date:
Subject: Re: proposal: alternative psql commands quit and exit