1 /*-------------------------------------------------------------------------
4 * prototypes for pquery.c.
7 * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/tcop/pquery.h
12 *-------------------------------------------------------------------------
17 #include "nodes/parsenodes.h"
18 #include "utils/portal.h"
21 extern PGDLLIMPORT Portal ActivePortal;
24 extern PortalStrategy ChoosePortalStrategy(List *stmts);
26 extern List *FetchPortalTargetList(Portal portal);
28 extern List *FetchStatementTargetList(Node *stmt);
30 extern void PortalStart(Portal portal, ParamListInfo params,
31 int eflags, Snapshot snapshot);
33 extern void PortalSetResultFormat(Portal portal, int nFormats,
36 extern bool PortalRun(Portal portal, long count, bool isTopLevel,
37 DestReceiver *dest, DestReceiver *altdest,
40 extern long PortalRunFetch(Portal portal,
41 FetchDirection fdirection,