1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add selectivity-calculation code for RowCompareExpr nodes. Simplistic,

but a lot better than nothing at all ...
This commit is contained in:
Tom Lane
2006-01-14 00:14:12 +00:00
parent 39fc1fb07a
commit 34f8ee9737
3 changed files with 73 additions and 3 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.76 2005/11/25 19:47:49 tgl Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/path/clausesel.c,v 1.77 2006/01/14 00:14:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -663,6 +663,14 @@ clause_selectivity(PlannerInfo *root,
varRelid,
jointype);
}
else if (IsA(clause, RowCompareExpr))
{
/* Use node specific selectivity calculation function */
s1 = rowcomparesel(root,
(RowCompareExpr *) clause,
varRelid,
jointype);
}
else if (IsA(clause, NullTest))
{
/* Use node specific selectivity calculation function */