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

Function copy_generic_path_info

src/backend/optimizer/plan/createplan.c:6580–6589  ·  view source on GitHub ↗

* Copy cost and size info from a Path node to the Plan node created from it. * The executor usually won't use this info, but it's needed by EXPLAIN. * Also copy the parallel-related flags, which the executor *will* use. */

Source from the content-addressed store, hash-verified

6578 * Also copy the parallel-related flags, which the executor *will* use.
6579 */
6580static void
6581copy_generic_path_info(Plan *dest, Path *src)
6582{
6583 dest->startup_cost = src->startup_cost;
6584 dest->total_cost = src->total_cost;
6585 dest->plan_rows = src->rows;
6586 dest->plan_width = src->pathtarget->width;
6587 dest->parallel_aware = src->parallel_aware;
6588 dest->parallel_safe = src->parallel_safe;
6589}
6590
6591/*
6592 * Copy cost and size info from a lower plan node to an inserted node.

Callers 15

create_append_planFunction · 0.85
create_merge_append_planFunction · 0.85
create_group_result_planFunction · 0.85
create_project_set_planFunction · 0.85
create_material_planFunction · 0.85
create_memoize_planFunction · 0.85
create_unique_planFunction · 0.85
create_gather_planFunction · 0.85
create_gather_merge_planFunction · 0.85
create_projection_planFunction · 0.85
create_sort_planFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected