---------------------------------------------------------------- * ExecAppendEstimate * * Compute the amount of space we'll need in the parallel * query DSM, and inform pcxt->estimator about our needs. * ---------------------------------------------------------------- */
| 499 | * ---------------------------------------------------------------- |
| 500 | */ |
| 501 | void |
| 502 | ExecAppendEstimate(AppendState *node, |
| 503 | ParallelContext *pcxt) |
| 504 | { |
| 505 | node->pstate_len = |
| 506 | add_size(offsetof(ParallelAppendState, pa_finished), |
| 507 | sizeof(bool) * node->as_nplans); |
| 508 | |
| 509 | shm_toc_estimate_chunk(&pcxt->estimator, node->pstate_len); |
| 510 | shm_toc_estimate_keys(&pcxt->estimator, 1); |
| 511 | } |
| 512 | |
| 513 | |
| 514 | /* ---------------------------------------------------------------- |
no test coverage detected