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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user