Re: Fix overflow hazard in interval rounding - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix overflow hazard in interval rounding
Date
Msg-id 2660113.1707849977@sss.pgh.pa.us
Whole thread Raw
In response to Fix overflow hazard in interval rounding  (Joseph Koshakow <koshy44@gmail.com>)
Responses Re: Fix overflow hazard in interval rounding
List pgsql-hackers
Joseph Koshakow <koshy44@gmail.com> writes:
> Attached is a patch that fixes some overflow/underflow hazards that I
> discovered in the interval rounding code.

I think you need to use ereturn not ereport here; see other error
cases in AdjustIntervalForTypmod.

(We'd need ereport in back branches, but this problem seems to
me to probably not be worth back-patching.)

            regards, tom lane



pgsql-hackers by date:

Previous
From: Joseph Koshakow
Date:
Subject: Fix overflow hazard in interval rounding
Next
From: Tomas Vondra
Date:
Subject: Re: index prefetching