-
- Downloads
First cut at making useful selectivity estimates for range queries
(ie, WHERE x > lowbound AND x < highbound). It's not very bright yet but it does something useful. Also, rename intltsel/intgtsel to scalarltsel/scalargtsel to reflect usage better. Extend convert_to_scalar to do something a little bit useful with string data types. Still need to make it do something with date/time datatypes, but I'll wait for Thomas's datetime unification dust to settle first. Eventually the routine ought not have any type-specific knowledge at all; it ought to be calling a type-dependent routine found via a pg_type column; but that's a task for another day.
Showing
- doc/src/sgml/xindex.sgml 5 additions, 5 deletionsdoc/src/sgml/xindex.sgml
- doc/src/sgml/xoper.sgml 15 additions, 4 deletionsdoc/src/sgml/xoper.sgml
- src/backend/optimizer/path/clausesel.c 235 additions, 10 deletionssrc/backend/optimizer/path/clausesel.c
- src/backend/utils/adt/selfuncs.c 110 additions, 64 deletionssrc/backend/utils/adt/selfuncs.c
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_operator.h 135 additions, 135 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_proc.h 15 additions, 15 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/builtins.h 6 additions, 5 deletionssrc/include/utils/builtins.h
- src/tutorial/complex.source 5 additions, 7 deletionssrc/tutorial/complex.source
Loading
Please register or sign in to comment