Fix set_append_rel_pathlist() to deal intelligently with cases where
[PostgreSQL.git] / src / include / parser / analyze.h
blobba712d523b6c5a6a705c189e33b2f0a9e29f425c
1 /*-------------------------------------------------------------------------
3 * analyze.h
4 * parse analysis for optimizable statements
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef ANALYZE_H
15 #define ANALYZE_H
17 #include "parser/parse_node.h"
20 extern Query *parse_analyze(Node *parseTree, const char *sourceText,
21 Oid *paramTypes, int numParams);
22 extern Query *parse_analyze_varparams(Node *parseTree, const char *sourceText,
23 Oid **paramTypes, int *numParams);
25 extern Query *parse_sub_analyze(Node *parseTree, ParseState *parentParseState);
26 extern Query *transformStmt(ParseState *pstate, Node *parseTree);
28 extern bool analyze_requires_snapshot(Node *parseTree);
30 extern void CheckSelectLocking(Query *qry);
31 extern void applyLockingClause(Query *qry, Index rtindex,
32 bool forUpdate, bool noWait);
34 #endif /* ANALYZE_H */