Re: cash_mul_int8 / cash_div_int8

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp>
Cc: PgHacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: cash_mul_int8 / cash_div_int8
Date: 2015-10-08 02:55:00
Message-ID: CAB7nPqTJUmvhcr4tQ2gtnvYBNDHVXLyXKsNOaSDDhQhNcBrJuw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 8, 2015 at 12:11 AM, Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp> wrote:
> Also, cash_pl, cash_mi, cash_mul_int4 and so on... does not have overflow checks
> like as int8pl has.
>
> Of course, most of people don't need to worry about 64bit overflow for
> money... :-).

If you are using Zimbabwean dollar that's an issue:
https://en.wikipedia.org/wiki/Zimbabwean_dollar#Hyperinflation
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Haribabu Kommi 2015-10-08 03:22:40 RLS bug in expanding security quals
Previous Message Peter Geoghegan 2015-10-08 00:09:33 Re: More work on SortSupport for text - strcoll() and strxfrm() caching