Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2023-03-20 08:51:50 +0000
committerTomas Vondra2023-03-20 09:24:14 +0000
commite8583126833a53f4eebe28a8de45d128f01ff664 (patch)
tree5516f59d26fc1c340ff824a2827a6c1055448b96 /src/backend/access/spgist
parent0b51d423e974557e821d890c0a3a49e419a19caa (diff)
Fix netmask handling in inet_minmax_multi_ops
When calculating distance in brin_minmax_multi_distance_inet(), the netmask was applied incorrectly. This results in (seemingly) incorrect ordering of values, triggering an assert. For builds without asserts this is mostly harmless - we may merge other ranges, possibly resulting in slightly less efficient index. But it's still correct and the greedy algorithm doesn't guarantee optimality anyway. Backpatch to 14, where minmax-multi indexes were introduced. Reported by Dmitry Dolgov, investigation and fix by me. Reported-by: Dmitry Dolgov Backpatch-through: 14 Discussion: https://postgr.es/m/17774-c6f3e36dd4471e67@postgresql.org
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions