Hi Tomas,
Thanks for your patch..
I think your code is right, the subtraction only fails when the result is
too
big for numeric.
Two small things.
1. A NaN boundary gives a NaN distance. The
brin_minmax_multi_distance_numeric
return infinity there.
2. In 0004, GiST can call numrange_subdiff with v1 < v2. Overflow
there should give -infinity, not +infinity.
Thanks,
Shihao