diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-10-08 18:10:47 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-10-08 18:10:47 -0300 |
commit | 7b1c2a0f2066672b24f6257ec9b8d78a1754f494 (patch) | |
tree | ae3c3fa420de7e3ed9c39859f13c2b04b3a6d105 /src/include/utils/ruleutils.h | |
parent | 7bb0e97407c32cbf7245ef91fcc27d120c81e872 (diff) | |
download | postgresql-7b1c2a0f2066672b24f6257ec9b8d78a1754f494.tar.gz |
Split builtins.h to a new header ruleutils.h
The new header contains many prototypes for functions in ruleutils.c
that are not exposed to the SQL level.
Reviewed by Andres Freund and Michael Paquier.
Diffstat (limited to 'src/include/utils/ruleutils.h')
-rw-r--r-- | src/include/utils/ruleutils.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/include/utils/ruleutils.h b/src/include/utils/ruleutils.h new file mode 100644 index 0000000000..520b06653c --- /dev/null +++ b/src/include/utils/ruleutils.h @@ -0,0 +1,34 @@ +/*------------------------------------------------------------------------- + * + * ruleutils.h + * Declarations for ruleutils.c + * + * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * src/include/ruleutils.h + * + *------------------------------------------------------------------------- + */ +#ifndef RULEUTILS_H +#define RULEUTILS_H + +#include "nodes/nodes.h" +#include "nodes/parsenodes.h" +#include "nodes/pg_list.h" + + +extern char *pg_get_indexdef_string(Oid indexrelid); +extern char *pg_get_indexdef_columns(Oid indexrelid, bool pretty); + +extern char *pg_get_constraintdef_string(Oid constraintId); +extern char *deparse_expression(Node *expr, List *dpcontext, + bool forceprefix, bool showimplicit); +extern List *deparse_context_for(const char *aliasname, Oid relid); +extern List *deparse_context_for_planstate(Node *planstate, List *ancestors, + List *rtable, List *rtable_names); +extern List *select_rtable_names_for_explain(List *rtable, + Bitmapset *rels_used); +extern char *generate_collation_name(Oid collid); + +#endif /* RULEUTILS_H */ |