mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-06 05:17:38 +08:00
support both FOR UPDATE and FOR SHARE in one command, as well as both NOWAIT and normal WAIT behavior. The more general code is actually simpler and cleaner.
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* analyze.h
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/parser/analyze.h,v 1.33 2006/04/30 18:30:40 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ANALYZE_H
|
|
#define ANALYZE_H
|
|
|
|
#include "parser/parse_node.h"
|
|
|
|
|
|
extern List *parse_analyze(Node *parseTree, const char *sourceText,
|
|
Oid *paramTypes, int numParams);
|
|
extern List *parse_analyze_varparams(Node *parseTree, const char *sourceText,
|
|
Oid **paramTypes, int *numParams);
|
|
extern List *parse_sub_analyze(Node *parseTree, ParseState *parentParseState);
|
|
extern List *analyzeCreateSchemaStmt(CreateSchemaStmt *stmt);
|
|
extern void CheckSelectLocking(Query *qry);
|
|
extern void applyLockingClause(Query *qry, Index rtindex,
|
|
bool forUpdate, bool noWait);
|
|
|
|
#endif /* ANALYZE_H */
|