diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-01-02 20:00:50 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-01-02 20:00:50 +0000 |
commit | f9ac414c35ea084ff70c564ab2c32adb06d5296f (patch) | |
tree | cec15aa55c29cbf431576e87ba2e950e0226549b /src/backend/utils/adt/pgstatfuncs.c | |
parent | 0b56be83441c01419fcf82ebe666e968e6f7b246 (diff) | |
download | postgresql-f9ac414c35ea084ff70c564ab2c32adb06d5296f.tar.gz postgresql-f9ac414c35ea084ff70c564ab2c32adb06d5296f.zip |
Fix float4/8 to handle Infinity and Nan consistently, e.g. Infinity is a
valid result from a computation if one of the input values was infinity.
The previous code assumed an operation that returned infinity was an
overflow.
Handle underflow/overflow consistently, and add checks for aggregate
overflow.
Consistently prevent Inf/Nan from being cast to integer data types.
Fix INT_MIN % -1 to prevent overflow.
Update regression results for new error text.
Per report from Roman Kononov.
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions