---------------------------------------------------------------- * ExecSeqScanEstimate * * Compute the amount of space we'll need in the parallel * query DSM, and inform pcxt->estimator about our needs. * ---------------------------------------------------------------- */
| 308 | * ---------------------------------------------------------------- |
| 309 | */ |
| 310 | void |
| 311 | ExecSeqScanEstimate(SeqScanState *node, |
| 312 | ParallelContext *pcxt) |
| 313 | { |
| 314 | EState *estate = node->ss.ps.state; |
| 315 | |
| 316 | node->pscan_len = table_parallelscan_estimate(node->ss.ss_currentRelation, |
| 317 | estate->es_snapshot); |
| 318 | shm_toc_estimate_chunk(&pcxt->estimator, node->pscan_len); |
| 319 | shm_toc_estimate_keys(&pcxt->estimator, 1); |
| 320 | } |
| 321 | |
| 322 | /* ---------------------------------------------------------------- |
| 323 | * ExecSeqScanInitializeDSM |
no test coverage detected