Re: BUG #17172: NaN compare error in hash agg
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ma100@hotmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2021-09-02T21:28:04Z
Lists: pgsql-bugs
I wrote: > This has been broken for a very long time. Do we dare back-patch > the fix? Given the lack of complaints, maybe fixing it in HEAD/v14 > is enough. OTOH, it's not likely that many people have hash indexes > containing minus NaNs, so maybe it's okay to back-patch. After further thought I concluded that there's little reason not to back-patch. If someone has -NaN in a hash index, they'd need to re-index if they ever want to find that entry again ... but it was already true that many queries would not find that entry. Hence, pushed to all branches. regards, tom lane
Commits
-
Fix float4/float8 hash functions to produce uniform results for NaNs.
- dea212e245f6 9.6.24 landed
- be2beadaff1a 13.5 landed
- ad66373ead6d 11.14 landed
- a3bf136732b1 12.9 landed
- 2bb20e34c11f 10.19 landed
- 23c6bc581dc9 14.0 landed
- ce773f230d9b 15.0 landed