mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Harmonize more parameter names in bulk.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in optimizer, parser, utility, libpq, and "commands" code, as well as in remaining library code. Do the same for all code related to frontend programs (with the exception of pg_dump/pg_dumpall related code). Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will handle ecpg and pg_dump/pg_dumpall. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include "optimizer/geqo_random.h"
|
||||
#include "optimizer/geqo_selection.h"
|
||||
|
||||
static int linear_rand(PlannerInfo *root, int max, double bias);
|
||||
static int linear_rand(PlannerInfo *root, int pool_size, double bias);
|
||||
|
||||
|
||||
/*
|
||||
|
@@ -311,7 +311,7 @@ static ModifyTable *make_modifytable(PlannerInfo *root, Plan *subplan,
|
||||
List *updateColnosLists,
|
||||
List *withCheckOptionLists, List *returningLists,
|
||||
List *rowMarks, OnConflictExpr *onconflict,
|
||||
List *mergeActionList, int epqParam);
|
||||
List *mergeActionLists, int epqParam);
|
||||
static GatherMerge *create_gather_merge_plan(PlannerInfo *root,
|
||||
GatherMergePath *best_path);
|
||||
|
||||
|
@@ -3086,13 +3086,13 @@ extract_rollup_sets(List *groupingSets)
|
||||
* gets implemented in one pass.)
|
||||
*/
|
||||
static List *
|
||||
reorder_grouping_sets(List *groupingsets, List *sortclause)
|
||||
reorder_grouping_sets(List *groupingSets, List *sortclause)
|
||||
{
|
||||
ListCell *lc;
|
||||
List *previous = NIL;
|
||||
List *result = NIL;
|
||||
|
||||
foreach(lc, groupingsets)
|
||||
foreach(lc, groupingSets)
|
||||
{
|
||||
List *candidate = (List *) lfirst(lc);
|
||||
List *new_elems = list_difference_int(candidate, previous);
|
||||
|
@@ -75,7 +75,8 @@ static List *build_index_tlist(PlannerInfo *root, IndexOptInfo *index,
|
||||
static List *get_relation_statistics(RelOptInfo *rel, Relation relation);
|
||||
static void set_relation_partition_info(PlannerInfo *root, RelOptInfo *rel,
|
||||
Relation relation);
|
||||
static PartitionScheme find_partition_scheme(PlannerInfo *root, Relation rel);
|
||||
static PartitionScheme find_partition_scheme(PlannerInfo *root,
|
||||
Relation relation);
|
||||
static void set_baserel_partition_key_exprs(Relation relation,
|
||||
RelOptInfo *rel);
|
||||
static void set_baserel_partition_constraint(Relation relation,
|
||||
|
Reference in New Issue
Block a user