postgresql/src/include/parser/analyze.h

37 lines
1.1 KiB
C
Raw Normal View History

/*-------------------------------------------------------------------------
*
* analyze.h
* parse analysis for optimizable statements
*
*
2011-01-01 19:18:15 +01:00
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
2010-09-20 22:08:53 +02:00
* src/include/parser/analyze.h
*
*-------------------------------------------------------------------------
*/
#ifndef ANALYZE_H
#define ANALYZE_H
#include "parser/parse_node.h"
extern Query *parse_analyze(Node *parseTree, const char *sourceText,
2006-10-04 02:30:14 +02:00
Oid *paramTypes, int numParams);
extern Query *parse_analyze_varparams(Node *parseTree, const char *sourceText,
2006-10-04 02:30:14 +02:00
Oid **paramTypes, int *numParams);
extern Query *parse_sub_analyze(Node *parseTree, ParseState *parentParseState,
2010-02-26 03:01:40 +01:00
CommonTableExpr *parentCTE,
bool locked_from_parent);
extern Query *transformStmt(ParseState *pstate, Node *parseTree);
extern bool analyze_requires_snapshot(Node *parseTree);
extern void CheckSelectLocking(Query *qry);
extern void applyLockingClause(Query *qry, Index rtindex,
bool forUpdate, bool noWait, bool pushedDown);
#endif /* ANALYZE_H */