Re: cash_mul_int8 / cash_div_int8 - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: cash_mul_int8 / cash_div_int8
Date
Msg-id CAB7nPqTJUmvhcr4tQ2gtnvYBNDHVXLyXKsNOaSDDhQhNcBrJuw@mail.gmail.com
Whole thread Raw
In response to Re: cash_mul_int8 / cash_div_int8  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
List pgsql-hackers
On Thu, Oct 8, 2015 at 12:11 AM, Kohei KaiGai <kaigai@kaigai.gr.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



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: More work on SortSupport for text - strcoll() and strxfrm() caching
Next
From: Haribabu Kommi
Date:
Subject: RLS bug in expanding security quals