mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-17 11:57:00 +08:00
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
34 lines
1017 B
C
34 lines
1017 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* rewriteHandler.h
|
|
* External interface to query rewriter.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/rewrite/rewriteHandler.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef REWRITEHANDLER_H
|
|
#define REWRITEHANDLER_H
|
|
|
|
#include "utils/relcache.h"
|
|
#include "nodes/parsenodes.h"
|
|
|
|
extern List *QueryRewrite(Query *parsetree);
|
|
extern void AcquireRewriteLocks(Query *parsetree,
|
|
bool forExecute,
|
|
bool forUpdatePushedDown);
|
|
|
|
extern Node *build_column_default(Relation rel, int attrno);
|
|
extern Query *get_view_query(Relation view);
|
|
extern const char *view_query_is_auto_updatable(Query *viewquery,
|
|
bool check_cols);
|
|
extern int relation_is_updatable(Oid reloid,
|
|
bool include_triggers,
|
|
Bitmapset *include_cols);
|
|
|
|
#endif /* REWRITEHANDLER_H */
|