aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/command.h
blob: d91d7b3a913350c9a6d068ab96891bb3305c648e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*-------------------------------------------------------------------------
 *
 * command.h--
 *    prototypes for command.c.
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * $Id: command.h,v 1.4 1997/08/19 21:38:07 momjian Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef COMMAND_H
#define COMMAND_H

#include <utils/portal.h>

extern MemoryContext PortalExecutorHeapMemory;

/*
 * PerformPortalFetch --
 *	Performs the POSTQUEL function FETCH.  Fetches count (or all if 0)
 * tuples in portal with name in the forward direction iff goForward.
 *
 * Exceptions:
 *	BadArg if forward invalid.
 *	"WARN" if portal not found.
 */
extern void PerformPortalFetch(char *name, bool forward, int count,
			       char *tag, CommandDest dest);

/*
 * PerformPortalClose --
 *	Performs the POSTQUEL function CLOSE.
 */
extern void PerformPortalClose(char *name, CommandDest dest);

extern void PortalCleanup(Portal portal);

/*
 * PerformAddAttribute --
 *	Performs the POSTQUEL function ADD.
 */
extern void PerformAddAttribute(char *relationName, char *userName,
				bool inh, ColumnDef *colDef);

#endif /* COMMAND_H */