Commit 1dad2a5
committed
Fix order of parameters in BRIN minmax-multi calls
The BRIN minmax-multi consistent function incorrectly assumed it can
lookup an operator, and then swap the arguments to get the commutator.
For example <(a,b) would be called as <(b,a) to get >(a,b). This works
when the arguments are of the same type, but with cross-type opclasses
this fails. We can't swap <(float4,float8) arguments, for example.
Fixed by passing arguments in the right order.
Discussion: https://postgr.es/m/CAJKUy5jLZFLCxyxfT%3DMfK5mtPfSzHA1rVLowR-j4RRsFVvKm7A%40mail.gmail.com1 parent e1fbe11 commit 1dad2a5
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2606 | 2606 | | |
2607 | 2607 | | |
2608 | 2608 | | |
2609 | | - | |
2610 | | - | |
| 2609 | + | |
| 2610 | + | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
2617 | | - | |
2618 | | - | |
| 2617 | + | |
| 2618 | + | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | 2621 | | |
| |||
0 commit comments