MCPcopy Create free account
hub / github.com/apache/cloudberry / create_plain_partial_paths

Function create_plain_partial_paths

src/backend/optimizer/path/allpaths.c:1082–1099  ·  view source on GitHub ↗

* create_plain_partial_paths * Build partial access paths for parallel scan of a plain relation */

Source from the content-addressed store, hash-verified

1080 * Build partial access paths for parallel scan of a plain relation
1081 */
1082void
1083create_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

Callers 2

set_plain_rel_pathlistFunction · 0.85
set_plain_rel_pathlistFunction · 0.85

Calls 3

compute_parallel_workerFunction · 0.85
add_partial_pathFunction · 0.85
create_seqscan_pathFunction · 0.85

Tested by

no test coverage detected