mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@@ -26,19 +26,19 @@
|
||||
extern ObjectAddress DefineRule(RuleStmt *stmt, const char *queryString);
|
||||
|
||||
extern ObjectAddress DefineQueryRewrite(const char *rulename,
|
||||
Oid event_relid,
|
||||
Node *event_qual,
|
||||
CmdType event_type,
|
||||
bool is_instead,
|
||||
bool replace,
|
||||
List *action);
|
||||
Oid event_relid,
|
||||
Node *event_qual,
|
||||
CmdType event_type,
|
||||
bool is_instead,
|
||||
bool replace,
|
||||
List *action);
|
||||
|
||||
extern ObjectAddress RenameRewriteRule(RangeVar *relation, const char *oldName,
|
||||
const char *newName);
|
||||
const char *newName);
|
||||
|
||||
extern void setRuleCheckAsUser(Node *node, Oid userid);
|
||||
|
||||
extern void EnableDisableRule(Relation rel, const char *rulename,
|
||||
char fires_when);
|
||||
char fires_when);
|
||||
|
||||
#endif /* REWRITEDEFINE_H */
|
||||
|
@@ -19,18 +19,18 @@
|
||||
|
||||
extern List *QueryRewrite(Query *parsetree);
|
||||
extern void AcquireRewriteLocks(Query *parsetree,
|
||||
bool forExecute,
|
||||
bool forUpdatePushedDown);
|
||||
bool forExecute,
|
||||
bool forUpdatePushedDown);
|
||||
|
||||
extern Node *build_column_default(Relation rel, int attrno);
|
||||
extern void rewriteTargetListUD(Query *parsetree, RangeTblEntry *target_rte,
|
||||
Relation target_relation);
|
||||
Relation target_relation);
|
||||
|
||||
extern Query *get_view_query(Relation view);
|
||||
extern const char *view_query_is_auto_updatable(Query *viewquery,
|
||||
bool check_cols);
|
||||
extern int relation_is_updatable(Oid reloid,
|
||||
bool include_triggers,
|
||||
Bitmapset *include_cols);
|
||||
bool check_cols);
|
||||
extern int relation_is_updatable(Oid reloid,
|
||||
bool include_triggers,
|
||||
Bitmapset *include_cols);
|
||||
|
||||
#endif /* REWRITEHANDLER_H */
|
||||
|
@@ -41,14 +41,14 @@ typedef enum ReplaceVarsNoMatchOption
|
||||
|
||||
extern void OffsetVarNodes(Node *node, int offset, int sublevels_up);
|
||||
extern void ChangeVarNodes(Node *node, int old_varno, int new_varno,
|
||||
int sublevels_up);
|
||||
int sublevels_up);
|
||||
extern void IncrementVarSublevelsUp(Node *node, int delta_sublevels_up,
|
||||
int min_sublevels_up);
|
||||
int min_sublevels_up);
|
||||
extern void IncrementVarSublevelsUp_rtable(List *rtable,
|
||||
int delta_sublevels_up, int min_sublevels_up);
|
||||
int delta_sublevels_up, int min_sublevels_up);
|
||||
|
||||
extern bool rangeTableEntry_used(Node *node, int rt_index,
|
||||
int sublevels_up);
|
||||
int sublevels_up);
|
||||
|
||||
extern Query *getInsertSelectQuery(Query *parsetree, Query ***subquery_ptr);
|
||||
|
||||
@@ -62,24 +62,24 @@ extern int locate_windowfunc(Node *node);
|
||||
extern bool checkExprHasSubLink(Node *node);
|
||||
|
||||
extern Node *replace_rte_variables(Node *node,
|
||||
int target_varno, int sublevels_up,
|
||||
replace_rte_variables_callback callback,
|
||||
void *callback_arg,
|
||||
bool *outer_hasSubLinks);
|
||||
int target_varno, int sublevels_up,
|
||||
replace_rte_variables_callback callback,
|
||||
void *callback_arg,
|
||||
bool *outer_hasSubLinks);
|
||||
extern Node *replace_rte_variables_mutator(Node *node,
|
||||
replace_rte_variables_context *context);
|
||||
replace_rte_variables_context *context);
|
||||
|
||||
extern Node *map_variable_attnos(Node *node,
|
||||
int target_varno, int sublevels_up,
|
||||
const AttrNumber *attno_map, int map_length,
|
||||
Oid to_rowtype, bool *found_whole_row);
|
||||
int target_varno, int sublevels_up,
|
||||
const AttrNumber *attno_map, int map_length,
|
||||
Oid to_rowtype, bool *found_whole_row);
|
||||
|
||||
extern Node *ReplaceVarsFromTargetList(Node *node,
|
||||
int target_varno, int sublevels_up,
|
||||
RangeTblEntry *target_rte,
|
||||
List *targetlist,
|
||||
ReplaceVarsNoMatchOption nomatch_option,
|
||||
int nomatch_varno,
|
||||
bool *outer_hasSubLinks);
|
||||
int target_varno, int sublevels_up,
|
||||
RangeTblEntry *target_rte,
|
||||
List *targetlist,
|
||||
ReplaceVarsNoMatchOption nomatch_option,
|
||||
int nomatch_varno,
|
||||
bool *outer_hasSubLinks);
|
||||
|
||||
#endif /* REWRITEMANIP_H */
|
||||
|
@@ -42,8 +42,8 @@ extern PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_permis
|
||||
extern PGDLLIMPORT row_security_policy_hook_type row_security_policy_hook_restrictive;
|
||||
|
||||
extern void get_row_security_policies(Query *root,
|
||||
RangeTblEntry *rte, int rt_index,
|
||||
List **securityQuals, List **withCheckOptions,
|
||||
bool *hasRowSecurity, bool *hasSubLinks);
|
||||
RangeTblEntry *rte, int rt_index,
|
||||
List **securityQuals, List **withCheckOptions,
|
||||
bool *hasRowSecurity, bool *hasSubLinks);
|
||||
|
||||
#endif /* ROWSECURITY_H */
|
||||
|
Reference in New Issue
Block a user