aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist/spgutils.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2021-04-04 19:23:30 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2021-04-04 19:23:32 +0200
commite1fbe1181c86247eaf8b4b142b81361ce4efcc66 (patch)
treeeab2ccc1f47479acae436930bdd3b621368d3629 /src/backend/access/spgist/spgutils.c
parent7262f2421a1e099a631356f7b80ad198e34e2a8a (diff)
downloadpostgresql-e1fbe1181c86247eaf8b4b142b81361ce4efcc66.tar.gz
postgresql-e1fbe1181c86247eaf8b4b142b81361ce4efcc66.zip
Fix BRIN minmax-multi distance for inet type
The distance calculation ignored the mask, unlike the inet comparator, which resulted in negative distance in some cases. Fixed by applying the mask in brin_minmax_multi_distance_inet. I've considered simply calling inetmi() to calculate the delta, but that does not consider mask either. Reviewed-by: Zhihong Yu Discussion: https://postgr.es/m/1a0a7b9d-9bda-e3a2-7fa4-88f15042a051%40enterprisedb.com
Diffstat (limited to 'src/backend/access/spgist/spgutils.c')
0 files changed, 0 insertions, 0 deletions