---------------------------------------------------------------- * ExecMaterialRestrPos * * Calls tuplestore to restore the last saved file position. * ---------------------------------------------------------------- */
| 410 | * ---------------------------------------------------------------- |
| 411 | */ |
| 412 | void |
| 413 | ExecMaterialRestrPos(MaterialState *node) |
| 414 | { |
| 415 | Assert(node->eflags & EXEC_FLAG_MARK); |
| 416 | |
| 417 | /* |
| 418 | * if we haven't materialized yet, just return. |
| 419 | */ |
| 420 | if (!node->tuplestorestate) |
| 421 | return; |
| 422 | |
| 423 | /* |
| 424 | * copy the mark to the active read pointer. |
| 425 | */ |
| 426 | tuplestore_copy_read_pointer(node->tuplestorestate, 1, 0); |
| 427 | } |
| 428 | |
| 429 | /* |
| 430 | * ExecChildRescan |
no test coverage detected