1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* utility.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* prototypes for utility.c.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
2007-01-05 23:20:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2007-01-05 23:20:05 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.30 2007/01/05 22:19:58 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef UTILITY_H
|
|
|
|
#define UTILITY_H
|
|
|
|
|
2006-09-08 00:52:01 +02:00
|
|
|
#include "tcop/tcopprot.h"
|
1996-11-04 13:07:05 +01:00
|
|
|
|
2004-08-02 03:30:51 +02:00
|
|
|
|
|
|
|
extern void ProcessUtility(Node *parsetree, ParamListInfo params,
|
2004-08-29 07:07:03 +02:00
|
|
|
DestReceiver *dest, char *completionTag);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2003-05-06 22:26:28 +02:00
|
|
|
extern bool UtilityReturnsTuples(Node *parsetree);
|
|
|
|
|
|
|
|
extern TupleDesc UtilityTupleDescriptor(Node *parsetree);
|
|
|
|
|
2003-05-02 22:54:36 +02:00
|
|
|
extern const char *CreateCommandTag(Node *parsetree);
|
|
|
|
|
2004-09-13 22:10:13 +02:00
|
|
|
extern const char *CreateQueryTag(Query *parsetree);
|
|
|
|
|
2006-09-08 00:52:01 +02:00
|
|
|
extern LogStmtLevel GetCommandLogLevel(Node *parsetree);
|
|
|
|
|
|
|
|
extern LogStmtLevel GetQueryLogLevel(Query *parsetree);
|
|
|
|
|
2006-08-12 22:05:56 +02:00
|
|
|
extern bool QueryReturnsTuples(Query *parsetree);
|
|
|
|
|
2004-09-13 22:10:13 +02:00
|
|
|
extern bool QueryIsReadOnly(Query *parsetree);
|
|
|
|
|
2003-07-22 21:00:12 +02:00
|
|
|
extern void CheckRelationOwnership(RangeVar *rel, bool noCatalogs);
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* UTILITY_H */
|