Add cost estimation of range @> and <@ operators.
The estimates are based on the existing lower bound histogram, and a new histogram of range lengths. Bump catversion, because the range length histogram now needs to be present in statistic slot kind 6, or you get an error on @> and <@ queries. (A re-ANALYZE would be enough to fix that, though) Alexander Korotkov, with some refactoring by me.
Showing
- src/backend/utils/adt/rangetypes_selfuncs.c 536 additions, 5 deletionssrc/backend/utils/adt/rangetypes_selfuncs.c
- src/backend/utils/adt/rangetypes_typanalyze.c 121 additions, 4 deletionssrc/backend/utils/adt/rangetypes_typanalyze.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/catalog/pg_operator.h 1 addition, 0 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_statistic.h 8 additions, 4 deletionssrc/include/catalog/pg_statistic.h
Loading
Please register or sign in to comment