Bruce Momjian <[EMAIL PROTECTED]> writes:
> Actually, when you return ERANGE, what is 'result'? Nan? Inf? finite?
I believe it's HUGE_VAL (the largest finite value) ... which is
something I don't want to explicitly test for, any more than I liked
the explicit use of min/max values before. Your isinf test is OK
because the point is that we want to replace any non-Inf result with Inf
if the result overflowed.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match