OSDN Git Service

52c02253068c5acdba60a6507658716662738cb3
[pg-rex/syncrep.git] / src / include / tcop / utility.h
1 /*-------------------------------------------------------------------------
2  *
3  * utility.h
4  *        prototypes for utility.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.31 2007/02/20 17:32:17 tgl Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef UTILITY_H
15 #define UTILITY_H
16
17 #include "tcop/tcopprot.h"
18
19
20 extern void ProcessUtility(Node *parsetree, ParamListInfo params,
21                            DestReceiver *dest, char *completionTag);
22
23 extern bool UtilityReturnsTuples(Node *parsetree);
24
25 extern TupleDesc UtilityTupleDescriptor(Node *parsetree);
26
27 extern const char *CreateCommandTag(Node *parsetree);
28
29 extern LogStmtLevel GetCommandLogLevel(Node *parsetree);
30
31 extern bool CommandIsReadOnly(Node *parsetree);
32
33 extern void CheckRelationOwnership(RangeVar *rel, bool noCatalogs);
34
35 #endif   /* UTILITY_H */