diff options
Diffstat (limited to 'src/include/commands/portalcmds.h')
-rw-r--r-- | src/include/commands/portalcmds.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/commands/portalcmds.h b/src/include/commands/portalcmds.h new file mode 100644 index 00000000000..b62e3638a91 --- /dev/null +++ b/src/include/commands/portalcmds.h @@ -0,0 +1,39 @@ +/*------------------------------------------------------------------------- + * + * portalcmds.h + * prototypes for portalcmds.c. + * + * + * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * $Id: portalcmds.h,v 1.1 2002/04/15 05:22:03 tgl Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef PORTALCMDS_H +#define PORTALCMDS_H + +#include "utils/portal.h" + +/* + * 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. + * "ERROR" if portal not found. + */ +extern void PerformPortalFetch(char *name, bool forward, int count, + CommandDest dest, char *completionTag); + +/* + * PerformPortalClose + * Performs the POSTQUEL function CLOSE. + */ +extern void PerformPortalClose(char *name, CommandDest dest); + +extern void PortalCleanup(Portal portal); + +#endif /* PORTALCMDS_H */ |