* create_plain_partial_paths * Build partial access paths for parallel scan of a plain relation */
| 1080 | * Build partial access paths for parallel scan of a plain relation |
| 1081 | */ |
| 1082 | void |
| 1083 | create_plain_partial_paths(PlannerInfo *root, RelOptInfo *rel) |
| 1084 | { |
| 1085 | int parallel_workers; |
| 1086 | |
| 1087 | parallel_workers = compute_parallel_worker(root, rel, rel->pages, -1, |
| 1088 | max_parallel_workers_per_gather); |
| 1089 | |
| 1090 | /* If any limit was set to zero, the user doesn't want a parallel scan. */ |
| 1091 | /* GPDB parallel, parallel_workers <= 1 is bogus */ |
| 1092 | if (parallel_workers <= 1) |
| 1093 | return; |
| 1094 | |
| 1095 | /* CBDB_PARALLEL_FIXME: update locus.parallel_workers? */ |
| 1096 | |
| 1097 | /* Add an unordered partial path based on a parallel sequential scan. */ |
| 1098 | add_partial_path(rel, create_seqscan_path(root, rel, NULL, parallel_workers)); |
| 1099 | } |
| 1100 | |
| 1101 | /* |
| 1102 | * set_tablesample_rel_size |
no test coverage detected