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

Function ExecInitIndexScan

src/backend/executor/nodeIndexscan.c:910–922  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecInitIndexScan * * 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

908 * ----------------------------------------------------------------
909 */
910IndexScanState *
911ExecInitIndexScan(IndexScan *node, EState *estate, int eflags)
912{
913 Relation currentRelation;
914
915 /*
916 * open the base relation and acquire appropriate lock on it.
917 */
918 currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
919
920 return ExecInitIndexScanForPartition(node, estate, eflags,
921 currentRelation, node->indexid);
922}
923
924IndexScanState *
925ExecInitIndexScanForPartition(IndexScan *node, EState *estate, int eflags,

Callers 1

ExecInitNodeFunction · 0.85

Calls 2

ExecOpenScanRelationFunction · 0.85

Tested by

no test coverage detected