mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +03:00
Cosmetic improvements in setup of planner's per-RTE arrays.
Merge setup_append_rel_array into setup_simple_rel_arrays. There's no particularly good reason to keep them separate, and it's inconsistent with the lack of separation in expand_planner_arrays. The only apparent benefit was that the fast path for trivial queries in query_planner() doesn't need to set up the append_rel_array; but all we're saving there is an if-test and NULL assignment, which surely ought to be negligible. Also improve some obsolete comments. Discussion: https://postgr.es/m/17220.1565301350@sss.pgh.pa.us
This commit is contained in:
@@ -277,7 +277,6 @@ extern Path *reparameterize_path_by_child(PlannerInfo *root, Path *path,
|
||||
* prototypes for relnode.c
|
||||
*/
|
||||
extern void setup_simple_rel_arrays(PlannerInfo *root);
|
||||
extern void setup_append_rel_array(PlannerInfo *root);
|
||||
extern void expand_planner_arrays(PlannerInfo *root, int add_size);
|
||||
extern RelOptInfo *build_simple_rel(PlannerInfo *root, int relid,
|
||||
RelOptInfo *parent);
|
||||
|
||||
Reference in New Issue
Block a user