1 /*-------------------------------------------------------------------------
4 * Declarations for ruleutils.c
6 * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/utils/ruleutils.h
11 *-------------------------------------------------------------------------
16 #include "nodes/nodes.h"
17 #include "nodes/parsenodes.h"
18 #include "nodes/pg_list.h"
21 extern char *pg_get_indexdef_string(Oid indexrelid);
22 extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty);
24 extern char *pg_get_constraintdef_command(Oid constraintId);
25 extern char *deparse_expression(Node *expr, List *dpcontext,
26 bool forceprefix, bool showimplicit);
27 extern List *deparse_context_for(const char *aliasname, Oid relid);
28 extern List *deparse_context_for_plan_rtable(List *rtable, List *rtable_names);
29 extern List *set_deparse_context_planstate(List *dpcontext,
30 Node *planstate, List *ancestors);
31 extern List *select_rtable_names_for_explain(List *rtable,
32 Bitmapset *rels_used);
33 extern char *generate_collation_name(Oid collid);
35 #endif /* RULEUTILS_H */