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

Function ExecReScanWorkTableScan

src/backend/executor/nodeWorktablescan.c:215–229  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecReScanWorkTableScan * * Rescans the relation. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

213 * ----------------------------------------------------------------
214 */
215void
216ExecReScanWorkTableScan(WorkTableScanState *node)
217{
218 if (node->ss.ps.ps_ResultTupleSlot)
219 ExecClearTuple(node->ss.ps.ps_ResultTupleSlot);
220
221 ExecScanReScan(&node->ss);
222
223 /* No need (or way) to rescan if ExecWorkTableScan not called yet */
224 if (node->rustate)
225 {
226 tuplestore_select_read_pointer(node->rustate->working_table, node->readptr);
227 tuplestore_rescan(node->rustate->working_table);
228 }
229}

Callers 1

ExecReScanFunction · 0.85

Calls 4

ExecClearTupleFunction · 0.85
ExecScanReScanFunction · 0.85
tuplestore_rescanFunction · 0.85

Tested by

no test coverage detected