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
|
|
|
*
|
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2009, 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
|
|
|
*
|
2009-12-15 21:04:49 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.38 2009/12/15 20:04:49 tgl 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
|
|
|
|
2009-12-15 21:04:49 +01:00
|
|
|
/* Hook for plugins to get control in ProcessUtility() */
|
|
|
|
typedef void (*ProcessUtility_hook_type) (Node *parsetree,
|
|
|
|
const char *queryString, ParamListInfo params, bool isTopLevel,
|
|
|
|
DestReceiver *dest, char *completionTag);
|
|
|
|
extern PGDLLIMPORT ProcessUtility_hook_type ProcessUtility_hook;
|
|
|
|
|
2007-03-13 01:33:44 +01:00
|
|
|
extern void ProcessUtility(Node *parsetree, const char *queryString,
|
2007-11-15 22:14:46 +01:00
|
|
|
ParamListInfo params, bool isTopLevel,
|
|
|
|
DestReceiver *dest, char *completionTag);
|
2009-12-15 21:04:49 +01:00
|
|
|
extern void standard_ProcessUtility(Node *parsetree, const char *queryString,
|
|
|
|
ParamListInfo params, bool isTopLevel,
|
|
|
|
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);
|
|
|
|
|
2006-09-08 00:52:01 +02:00
|
|
|
extern LogStmtLevel GetCommandLogLevel(Node *parsetree);
|
|
|
|
|
2007-02-20 18:32:18 +01:00
|
|
|
extern bool CommandIsReadOnly(Node *parsetree);
|
2004-09-13 22:10:13 +02:00
|
|
|
|
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 */
|