PostgreSQL Source Code  git master
ruleutils.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * ruleutils.h
4  * Declarations for ruleutils.c
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/utils/ruleutils.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef RULEUTILS_H
14 #define RULEUTILS_H
15 
16 #include "nodes/nodes.h"
17 #include "nodes/parsenodes.h"
18 #include "nodes/pg_list.h"
19 
20 
21 extern char *pg_get_indexdef_string(Oid indexrelid);
22 extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty);
23 
24 extern char *pg_get_partkeydef_columns(Oid relid, bool pretty);
25 
26 extern char *pg_get_constraintdef_command(Oid constraintId);
27 extern char *deparse_expression(Node *expr, List *dpcontext,
28  bool forceprefix, bool showimplicit);
29 extern List *deparse_context_for(const char *aliasname, Oid relid);
30 extern List *deparse_context_for_plan_rtable(List *rtable, List *rtable_names);
31 extern List *set_deparse_context_planstate(List *dpcontext,
32  Node *planstate, List *ancestors);
34  Bitmapset *rels_used);
35 extern char *generate_collation_name(Oid collid);
36 extern char *get_range_partbound_string(List *bound_datums);
37 
38 #endif /* RULEUTILS_H */
List * set_deparse_context_planstate(List *dpcontext, Node *planstate, List *ancestors)
Definition: ruleutils.c:3154
char * pg_get_indexdef_columns(Oid indexrelid, bool pretty)
Definition: ruleutils.c:1131
List * deparse_context_for_plan_rtable(List *rtable, List *rtable_names)
Definition: ruleutils.c:3103
Definition: nodes.h:511
unsigned int Oid
Definition: postgres_ext.h:31
char * pg_get_indexdef_string(Oid indexrelid)
Definition: ruleutils.c:1124
char * get_range_partbound_string(List *bound_datums)
Definition: ruleutils.c:10975
List * select_rtable_names_for_explain(List *rtable, Bitmapset *rels_used)
Definition: ruleutils.c:3178
List * deparse_context_for(const char *aliasname, Oid relid)
Definition: ruleutils.c:3061
char * pg_get_partkeydef_columns(Oid relid, bool pretty)
Definition: ruleutils.c:1572
char * deparse_expression(Node *expr, List *dpcontext, bool forceprefix, bool showimplicit)
Definition: ruleutils.c:3002
char * pg_get_constraintdef_command(Oid constraintId)
Definition: ruleutils.c:1818
char * generate_collation_name(Oid collid)
Definition: ruleutils.c:10850
Definition: pg_list.h:45