---------------------------------------------------------------- * ExecReScanTableFuncscan * * Rescans the relation. * ---------------------------------------------------------------- */
| 240 | * ---------------------------------------------------------------- |
| 241 | */ |
| 242 | void |
| 243 | ExecReScanTableFuncScan(TableFuncScanState *node) |
| 244 | { |
| 245 | Bitmapset *chgparam = node->ss.ps.chgParam; |
| 246 | |
| 247 | if (node->ss.ps.ps_ResultTupleSlot) |
| 248 | ExecClearTuple(node->ss.ps.ps_ResultTupleSlot); |
| 249 | ExecScanReScan(&node->ss); |
| 250 | |
| 251 | /* |
| 252 | * Recompute when parameters are changed. |
| 253 | */ |
| 254 | if (chgparam) |
| 255 | { |
| 256 | if (node->tupstore != NULL) |
| 257 | { |
| 258 | tuplestore_end(node->tupstore); |
| 259 | node->tupstore = NULL; |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | if (node->tupstore != NULL) |
| 264 | tuplestore_rescan(node->tupstore); |
| 265 | } |
| 266 | |
| 267 | /* ---------------------------------------------------------------- |
| 268 | * tfuncFetchRows |
no test coverage detected