git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7262f24) | patch
Fix BRIN minmax-multi distance for inet type
Sun, 4 Apr 2021 17:23:30 +0000 (19:23 +0200)
Sun, 4 Apr 2021 17:23:32 +0000 (19:23 +0200)
commit e1fbe1181c86247eaf8b4b142b81361ce4efcc66
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
src/backend/access/brin/brin_minmax_multi.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /