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
|
|
|
*
|
|
|
|
*
|
2004-12-31 23:04:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2005, 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
|
|
|
*
|
2004-12-31 23:04:05 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.26 2004/12/31 22:03:44 pgsql Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef UTILITY_H
|
|
|
|
#define UTILITY_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "executor/execdesc.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);
|
|
|
|
|
|
|
|
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 */
|