---------------------------------------------------------------- * ExecIndexScanEstimate * * Compute the amount of space we'll need in the parallel * query DSM, and inform pcxt->estimator about our needs. * ---------------------------------------------------------------- */
| 1672 | * ---------------------------------------------------------------- |
| 1673 | */ |
| 1674 | void |
| 1675 | ExecIndexScanEstimate(IndexScanState *node, |
| 1676 | ParallelContext *pcxt) |
| 1677 | { |
| 1678 | EState *estate = node->ss.ps.state; |
| 1679 | |
| 1680 | node->iss_PscanLen = index_parallelscan_estimate(node->iss_RelationDesc, |
| 1681 | estate->es_snapshot); |
| 1682 | shm_toc_estimate_chunk(&pcxt->estimator, node->iss_PscanLen); |
| 1683 | shm_toc_estimate_keys(&pcxt->estimator, 1); |
| 1684 | } |
| 1685 | |
| 1686 | /* ---------------------------------------------------------------- |
| 1687 | * ExecIndexScanInitializeDSM |
no test coverage detected