---------------------------------------------------------------- * ExecSortRestrPos * * Calls tuplesort to restore the last saved sort file position. * ---------------------------------------------------------------- */
| 370 | * ---------------------------------------------------------------- |
| 371 | */ |
| 372 | void |
| 373 | ExecSortRestrPos(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 | |
| 387 | void |
| 388 | ExecReScanSort(SortState *node) |
no test coverage detected