aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2023-10-27 17:57:44 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2023-10-27 18:15:37 +0200
commitc6cf6d353c2865d82356ac86358622a101fde8ca (patch)
treeb12eec9e1c134d1f6ed4cbb3e13f49554d6ca4c5 /contrib/jsonb_plpython
parent8da86d62a11269e926765c0d6ef6f532b2b8b749 (diff)
downloadpostgresql-c6cf6d353c2865d82356ac86358622a101fde8ca.tar.gz
postgresql-c6cf6d353c2865d82356ac86358622a101fde8ca.zip
Fix minmax-multi distance for extreme interval values
When calculating distance for interval values, the code mostly mimicked interval_mi, i.e. it built a new interval value for the difference. That however does not work for sufficiently distant interval values, when the difference overflows the interval range. Instead, we can calculate the distance directly, without constructing the intermediate (and unnecessary) interval value. Backpatch to 14, where minmax-multi indexes were introduced. Reported-by: Dean Rasheed Reviewed-by: Ashutosh Bapat, Dean Rasheed Backpatch-through: 14 Discussion: https://postgr.es/m/eef0ea8c-4aaa-8d0d-027f-58b1f35dd170@enterprisedb.com
Diffstat (limited to 'contrib/jsonb_plpython')
0 files changed, 0 insertions, 0 deletions