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