| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: money type's overflow handling is woefully incomplete |
| Date: | 2017-12-12 18:21:53 |
| Message-ID: | 20171212182153.wm7qrwfsfigciuck@alap3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On 2017-12-12 11:01:04 -0500, Tom Lane wrote:
> Robert Haas <robertmhaas(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chapman Flack | 2017-12-12 18:32:06 | Re: proposal: alternative psql commands quit and exit |
| Previous Message | Jeremy Finzel | 2017-12-12 18:03:33 | Backfill bgworker Extension? |