MCPcopy Create free account
hub / github.com/apache/cloudberry / ExecInitIndexOnlyScan

Function ExecInitIndexOnlyScan

src/backend/executor/nodeIndexonlyscan.c:491–503  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecInitIndexOnlyScan * * Initializes the index scan's state information, creates * scan keys, and opens the base and index relations. * * Note: index scans have 2 sets of state information because * we have to keep track of the base relation and the * index relation. * -----------------------------------------

Source from the content-addressed store, hash-verified

489 * ----------------------------------------------------------------
490 */
491IndexOnlyScanState *
492ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags)
493{
494 Relation currentRelation;
495
496 /*
497 * open the scan relation
498 */
499 currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
500
501 return ExecInitIndexOnlyScanForPartition(node, estate, eflags,
502 currentRelation, node->indexid);
503}
504
505IndexOnlyScanState *
506ExecInitIndexOnlyScanForPartition(IndexOnlyScan *node, EState *estate, int eflags,

Callers 1

ExecInitNodeFunction · 0.85

Calls 2

ExecOpenScanRelationFunction · 0.85

Tested by

no test coverage detected