| 1 | /*------------------------------------------------------------------------- |
| 2 | * |
| 3 | * portalcmds.h |
| 4 | * prototypes for portalcmds.c. |
| 5 | * |
| 6 | * |
| 7 | * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group |
| 8 | * Portions Copyright (c) 1994, Regents of the University of California |
| 9 | * |
| 10 | * src/include/commands/portalcmds.h |
| 11 | * |
| 12 | *------------------------------------------------------------------------- |
| 13 | */ |
| 14 | #ifndef PORTALCMDS_H |
| 15 | #define PORTALCMDS_H |
| 16 | |
| 17 | #include "nodes/parsenodes.h" |
| 18 | #include "utils/portal.h" |
| 19 | |
| 20 | |
| 21 | extern void PerformCursorOpen(DeclareCursorStmt *cstmt, ParamListInfo params, |
| 22 | const char *queryString, bool isTopLevel); |
| 23 | |
| 24 | extern void PerformPortalFetch(FetchStmt *stmt, DestReceiver *dest, |
| 25 | char *completionTag); |
| 26 | |
| 27 | extern void PerformPortalClose(const char *name); |
| 28 | |
| 29 | extern void PortalCleanup(Portal portal); |
| 30 | |
| 31 | extern void PersistHoldablePortal(Portal portal); |
| 32 | |
| 33 | #endif /* PORTALCMDS_H */ |
| 34 | |