---------------------------------------------------------------- * ExecBitmapHeapEstimate * * Compute the amount of space we'll need in the parallel * query DSM, and inform pcxt->estimator about our needs. * ---------------------------------------------------------------- */
| 947 | * ---------------------------------------------------------------- |
| 948 | */ |
| 949 | void |
| 950 | ExecBitmapHeapEstimate(BitmapHeapScanState *node, |
| 951 | ParallelContext *pcxt) |
| 952 | { |
| 953 | EState *estate = node->ss.ps.state; |
| 954 | |
| 955 | node->pscan_len = add_size(offsetof(ParallelBitmapHeapState, |
| 956 | phs_snapshot_data), |
| 957 | EstimateSnapshotSpace(estate->es_snapshot)); |
| 958 | |
| 959 | shm_toc_estimate_chunk(&pcxt->estimator, node->pscan_len); |
| 960 | shm_toc_estimate_keys(&pcxt->estimator, 1); |
| 961 | } |
| 962 | |
| 963 | /* ---------------------------------------------------------------- |
| 964 | * ExecBitmapHeapInitializeDSM |
no test coverage detected