---------------------------------------------------------------- * ExecReScanWorkTableScan * * Rescans the relation. * ---------------------------------------------------------------- */
| 213 | * ---------------------------------------------------------------- |
| 214 | */ |
| 215 | void |
| 216 | ExecReScanWorkTableScan(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 | } |
no test coverage detected