]> granicus.if.org Git - postgresql/commit
Fix numeric_smaller, numeric_larger, float4smaller, float4larger,
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Jul 2003 19:48:41 +0000 (19:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Jul 2003 19:48:41 +0000 (19:48 +0000)
commit4b1c6695f1dc55301ba17414cc0d00b85e17f7cc
treef950f2ff5e2d020aa35e0571bea5ef2fb3cf6f80
parent0159f7f2726e6323f2c44a2937b775bc72b2a638
Fix numeric_smaller, numeric_larger, float4smaller, float4larger,
float8smaller, float8larger (and thereby the MIN/MAX aggregates on these
datatypes) to agree with the datatypes' comparison operations as
regards NaN handling.  In all these datatypes, NaN is arbitrarily
considered larger than any normal value ... but MIN/MAX had not gotten
the word.  Per recent discussion on pgsql-sql.
src/backend/utils/adt/float.c
src/backend/utils/adt/numeric.c