pgsql: Fix handling of NaN values in BRIN minmax multi

2021-11-06 Thread Tomas Vondra
Fix handling of NaN values in BRIN minmax multi When calculating distance between float4/float8 values, we need to be a bit more careful about NaN values in order not to trigger assert. We consider NaN values to be equal (distace 0.0) and in infinite distance from all other values. On builds with

pgsql: Fix handling of NaN values in BRIN minmax multi

2021-11-06 Thread Tomas Vondra
Fix handling of NaN values in BRIN minmax multi When calculating distance between float4/float8 values, we need to be a bit more careful about NaN values in order not to trigger assert. We consider NaN values to be equal (distace 0.0) and in infinite distance from all other values. On builds with