Header And Logo

PostgreSQL
| The world's most advanced open source database.

rewriteHandler.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * rewriteHandler.h
00004  *      External interface to query rewriter.
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * src/include/rewrite/rewriteHandler.h
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef REWRITEHANDLER_H
00015 #define REWRITEHANDLER_H
00016 
00017 #include "utils/relcache.h"
00018 #include "nodes/parsenodes.h"
00019 
00020 extern List *QueryRewrite(Query *parsetree);
00021 extern void AcquireRewriteLocks(Query *parsetree, bool forUpdatePushedDown);
00022 
00023 extern Node *build_column_default(Relation rel, int attrno);
00024 extern bool relation_is_updatable(Oid reloid, int req_events);
00025 
00026 #endif   /* REWRITEHANDLER_H */