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

Function ExecInitForeignScan

src/backend/executor/nodeForeignscan.c:142–155  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecInitForeignScan * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

140 * ----------------------------------------------------------------
141 */
142ForeignScanState *
143ExecInitForeignScan(ForeignScan *node, EState *estate, int eflags)
144{
145 Relation currentRelation = NULL;
146
147 /*
148 * get the relation object id from the relid'th entry in the range table,
149 * open that relation and acquire appropriate lock on it.
150 */
151 if (node->scan.scanrelid > 0)
152 currentRelation = ExecOpenScanRelation(estate, node->scan.scanrelid, eflags);
153
154 return ExecInitForeignScanForPartition(node, estate, eflags, currentRelation);
155}
156
157ForeignScanState *
158ExecInitForeignScanForPartition(ForeignScan *node, EState *estate, int eflags, Relation currentRelation)

Callers 1

ExecInitNodeFunction · 0.85

Calls 2

ExecOpenScanRelationFunction · 0.85

Tested by

no test coverage detected