-
- Downloads
Fix "element <@ range" cost estimation.
The statistics-based cost estimation patch for range types broke that, by incorrectly assuming that the left operand of all range oeprators is a range. That lead to a "type x is not a range type" error. Because it took so long for anyone to notice, add a regression test for that case. We still don't do proper statistics-based cost estimation for that, so you just get a default constant estimate. We should look into implementing that, but this patch at least fixes the regression. Spotted by Tom Lane, when testing query from Josh Berkus.
Showing
- src/backend/utils/adt/rangetypes_selfuncs.c 4 additions, 2 deletionssrc/backend/utils/adt/rangetypes_selfuncs.c
- src/test/regress/expected/rangetypes.out 11 additions, 0 deletionssrc/test/regress/expected/rangetypes.out
- src/test/regress/sql/rangetypes.sql 9 additions, 0 deletionssrc/test/regress/sql/rangetypes.sql
Loading
Please register or sign in to comment