aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/selfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-10 22:25:37 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-10 22:25:37 +0000
commit2f1210629cf357fd0b6035e47ef10f240c82f6d5 (patch)
tree70e09751318b83743341f407903f9a0421fb052f /src/backend/utils/adt/selfuncs.c
parent111e29ef5ebebef8480abbd1f41e2956ede055b3 (diff)
downloadpostgresql-2f1210629cf357fd0b6035e47ef10f240c82f6d5.tar.gz
postgresql-2f1210629cf357fd0b6035e47ef10f240c82f6d5.zip
Separate predicate-testing code out of indxpath.c, making it a module
in its own right. As proposed by Simon Riggs, but with some editorializing of my own.
Diffstat (limited to 'src/backend/utils/adt/selfuncs.c')
-rw-r--r--src/backend/utils/adt/selfuncs.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c
index 12157fb4d9d..0b03f27c39c 100644
--- a/src/backend/utils/adt/selfuncs.c
+++ b/src/backend/utils/adt/selfuncs.c
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.180 2005/06/05 22:32:57 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.181 2005/06/10 22:25:36 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -4221,12 +4221,11 @@ genericcostestimate(PlannerInfo *root,
* of partial redundancy (such as "x < 4" from the qual and "x < 5"
* from the predicate) will be recognized and handled correctly by
* clauselist_selectivity(). This assumption is somewhat fragile,
- * since it depends on pred_test() and clauselist_selectivity() having
- * similar capabilities, and there are certainly many cases where we
- * will end up with a too-low selectivity estimate. This will bias
- * the system in favor of using partial indexes where possible, which
- * is not necessarily a bad thing. But it'd be nice to do better
- * someday.
+ * since it depends on predicate_implied_by() and clauselist_selectivity()
+ * having similar capabilities, and there are certainly many cases where
+ * we will end up with a too-low selectivity estimate. This will bias the
+ * system in favor of using partial indexes where possible, which is not
+ * necessarily a bad thing. But it'd be nice to do better someday.
*
* Note that index->indpred and indexQuals are both in implicit-AND form,
* so ANDing them together just takes merging the lists. However,