mirror of
https://github.com/postgres/postgres.git
synced 2026-06-17 06:01:21 -04:00
a601366a46
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
58 lines
1.6 KiB
C
58 lines
1.6 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* prep.h
|
|
* prototypes for files in optimizer/prep/
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/optimizer/prep.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PREP_H
|
|
#define PREP_H
|
|
|
|
#include "nodes/pathnodes.h"
|
|
#include "nodes/plannodes.h"
|
|
|
|
|
|
/*
|
|
* prototypes for prepjointree.c
|
|
*/
|
|
extern void transform_MERGE_to_join(Query *parse);
|
|
extern void replace_empty_jointree(Query *parse);
|
|
extern void pull_up_sublinks(PlannerInfo *root);
|
|
extern void preprocess_function_rtes(PlannerInfo *root);
|
|
extern void pull_up_subqueries(PlannerInfo *root);
|
|
extern void flatten_simple_union_all(PlannerInfo *root);
|
|
extern void reduce_outer_joins(PlannerInfo *root);
|
|
extern void remove_useless_result_rtes(PlannerInfo *root);
|
|
extern Relids get_relids_in_jointree(Node *jtnode, bool include_joins);
|
|
extern Relids get_relids_for_join(Query *query, int joinrelid);
|
|
|
|
/*
|
|
* prototypes for preptlist.c
|
|
*/
|
|
extern void preprocess_targetlist(PlannerInfo *root);
|
|
|
|
extern List *extract_update_targetlist_colnos(List *tlist);
|
|
|
|
extern PlanRowMark *get_plan_rowmark(List *rowmarks, Index rtindex);
|
|
|
|
/*
|
|
* prototypes for prepagg.c
|
|
*/
|
|
extern void get_agg_clause_costs(PlannerInfo *root, AggSplit aggsplit,
|
|
AggClauseCosts *costs);
|
|
extern void preprocess_aggrefs(PlannerInfo *root, Node *clause);
|
|
|
|
/*
|
|
* prototypes for prepunion.c
|
|
*/
|
|
extern RelOptInfo *plan_set_operations(PlannerInfo *root);
|
|
|
|
|
|
#endif /* PREP_H */
|