mirror of
https://github.com/postgres/postgres.git
synced 2026-03-24 03:14:30 -04:00
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* command.h--
|
|
* prototypes for command.c.
|
|
*
|
|
*
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: command.h,v 1.5 1997/09/07 04:57:22 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 */
|