aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_gist.h
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2021-11-06 01:25:31 +0100
committerTomas Vondra <tomas.vondra@postgresql.org>2021-11-06 01:50:44 +0100
commitd91353f4b21f10417d142e6ac17a0490adae867c (patch)
tree8387c32185fab8c1c601a07c42aa17f9a3fb85cc /contrib/btree_gist/btree_gist.h
parentf214960adde6028a39ba3014b1ab2b224faeefed (diff)
downloadpostgresql-d91353f4b21f10417d142e6ac17a0490adae867c.tar.gz
postgresql-d91353f4b21f10417d142e6ac17a0490adae867c.zip
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 without asserts, this issue is mostly harmless - the ranges may be merged in less efficient order, but the index is still correct. Per report from Andreas Seltenreich. Backpatch to 14, where this new BRIN opclass was introduced. Reported-by: Andreas Seltenreich Discussion: https://postgr.es/m/87r1bw9ukm.fsf@credativ.de
Diffstat (limited to 'contrib/btree_gist/btree_gist.h')
0 files changed, 0 insertions, 0 deletions