~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/parser/analyze.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * analyze.h
 
4
 *              parse analysis for optimizable statements
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL$
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef ANALYZE_H
 
15
#define ANALYZE_H
 
16
 
 
17
#include "parser/parse_node.h"
 
18
 
 
19
 
 
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);
 
24
 
 
25
extern Query *parse_sub_analyze(Node *parseTree, ParseState *parentParseState);
 
26
extern Query *transformStmt(ParseState *pstate, Node *parseTree);
 
27
 
 
28
extern bool analyze_requires_snapshot(Node *parseTree);
 
29
 
 
30
extern void CheckSelectLocking(Query *qry);
 
31
extern void applyLockingClause(Query *qry, Index rtindex,
 
32
                                   bool forUpdate, bool noWait);
 
33
 
 
34
#endif   /* ANALYZE_H */