summaryrefslogtreecommitdiff
path: root/src/include/commands/portalcmds.h
diff options
context:
space:
mode:
authorTom Lane2003-05-06 20:26:28 +0000
committerTom Lane2003-05-06 20:26:28 +0000
commit79913910d4b518a42c893b6dd459656798ffa591 (patch)
treef0cd5c25dff8d026b9d8d4736717a4d38c278134 /src/include/commands/portalcmds.h
parent299fbb4b379003557f79d2732a85ece168d04ec4 (diff)
Restructure command destination handling so that we pass around
DestReceiver pointers instead of just CommandDest values. The DestReceiver is made at the point where the destination is selected, rather than deep inside the executor. This cleans up the original kluge implementation of tstoreReceiver.c, and makes it easy to support retrieving results from utility statements inside portals. Thus, you can now do fun things like Bind and Execute a FETCH or EXPLAIN command, and it'll all work as expected (e.g., you can Describe the portal, or use Execute's count parameter to suspend the output partway through). Implementation involves stuffing the utility command's output into a Tuplestore, which would be kind of annoying for huge output sets, but should be quite acceptable for typical uses of utility commands.
Diffstat (limited to 'src/include/commands/portalcmds.h')
-rw-r--r--src/include/commands/portalcmds.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/commands/portalcmds.h b/src/include/commands/portalcmds.h
index f89ac36fa57..ce874df6679 100644
--- a/src/include/commands/portalcmds.h
+++ b/src/include/commands/portalcmds.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: portalcmds.h,v 1.9 2003/05/05 00:44:56 tgl Exp $
+ * $Id: portalcmds.h,v 1.10 2003/05/06 20:26:27 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -17,9 +17,9 @@
#include "utils/portal.h"
-extern void PerformCursorOpen(DeclareCursorStmt *stmt, CommandDest dest);
+extern void PerformCursorOpen(DeclareCursorStmt *stmt);
-extern void PerformPortalFetch(FetchStmt *stmt, CommandDest dest,
+extern void PerformPortalFetch(FetchStmt *stmt, DestReceiver *dest,
char *completionTag);
extern void PerformPortalClose(const char *name);