PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
rewriteHandler.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * rewriteHandler.h
4  * External interface to query rewriter.
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/rewrite/rewriteHandler.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef REWRITEHANDLER_H
15 #define REWRITEHANDLER_H
16 
17 #include "utils/relcache.h"
18 #include "nodes/parsenodes.h"
19 
20 extern List *QueryRewrite(Query *parsetree);
21 extern void AcquireRewriteLocks(Query *parsetree,
22  bool forExecute,
23  bool forUpdatePushedDown);
24 
25 extern Node *build_column_default(Relation rel, int attrno);
26 extern Query *get_view_query(Relation view);
27 extern const char *view_query_is_auto_updatable(Query *viewquery,
28  bool check_cols);
29 extern int relation_is_updatable(Oid reloid,
30  bool include_triggers,
31  Bitmapset *include_cols);
32 
33 #endif /* REWRITEHANDLER_H */
int relation_is_updatable(Oid reloid, bool include_triggers, Bitmapset *include_cols)
Definition: nodes.h:509
Query * get_view_query(Relation view)
unsigned int Oid
Definition: postgres_ext.h:31
List * QueryRewrite(Query *parsetree)
const char * view_query_is_auto_updatable(Query *viewquery, bool check_cols)
Node * build_column_default(Relation rel, int attrno)
void AcquireRewriteLocks(Query *parsetree, bool forExecute, bool forUpdatePushedDown)
Definition: pg_list.h:45