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

Function ExecSortRestrPos

src/backend/executor/nodeSort.c:372–385  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecSortRestrPos * * Calls tuplesort to restore the last saved sort file position. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

370 * ----------------------------------------------------------------
371 */
372void
373ExecSortRestrPos(SortState *node)
374{
375 /*
376 * if we haven't sorted yet, just return.
377 */
378 if (!node->sort_Done)
379 return;
380
381 /*
382 * restore the scan to the previously marked position
383 */
384 tuplesort_restorepos((Tuplesortstate *) node->tuplesortstate);
385}
386
387void
388ExecReScanSort(SortState *node)

Callers 1

ExecRestrPosFunction · 0.85

Calls 1

tuplesort_restoreposFunction · 0.85

Tested by

no test coverage detected