mirror of
https://github.com/postgres/postgres.git
synced 2025-10-31 10:30:33 +03:00
Instead of rechecking lossy index operators by putting them into the
regular qpqual ('filter condition'), add special-purpose code to
nodeIndexscan.c to recheck them. This ends being almost no net addition
of code, because the removal of planner code balances out the extra
executor code, but it is significantly more efficient when a lossy
operator is involved in an OR indexscan. The old implementation had
to recheck the entire indexqual in such cases.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.228 2004/01/05 23:39:53 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/outfuncs.c,v 1.229 2004/01/06 04:31:01 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Every node type that can appear in stored rules' parsetrees *must*
|
||||
@@ -356,6 +356,16 @@ _outIndexScan(StringInfo str, IndexScan *node)
|
||||
_outOidList(str, lfirst(tmp));
|
||||
}
|
||||
}
|
||||
/* this can become WRITE_NODE_FIELD when intlists are normal objects: */
|
||||
{
|
||||
List *tmp;
|
||||
|
||||
appendStringInfo(str, " :indxlossy ");
|
||||
foreach(tmp, node->indxlossy)
|
||||
{
|
||||
_outIntList(str, lfirst(tmp));
|
||||
}
|
||||
}
|
||||
WRITE_ENUM_FIELD(indxorderdir, ScanDirection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user