PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pquery.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pquery.h
4  * prototypes for pquery.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/tcop/pquery.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef PQUERY_H
15 #define PQUERY_H
16 
17 #include "nodes/parsenodes.h"
18 #include "utils/portal.h"
19 
20 
22 
23 
25 
26 extern List *FetchPortalTargetList(Portal portal);
27 
28 extern List *FetchStatementTargetList(Node *stmt);
29 
30 extern void PortalStart(Portal portal, ParamListInfo params,
31  int eflags, Snapshot snapshot);
32 
33 extern void PortalSetResultFormat(Portal portal, int nFormats,
34  int16 *formats);
35 
36 extern bool PortalRun(Portal portal, long count, bool isTopLevel,
37  bool run_once, DestReceiver *dest, DestReceiver *altdest,
38  char *completionTag);
39 
40 extern uint64 PortalRunFetch(Portal portal,
41  FetchDirection fdirection,
42  long count,
43  DestReceiver *dest);
44 
45 #endif /* PQUERY_H */
signed short int16
Definition: c.h:255
PortalStrategy ChoosePortalStrategy(List *stmts)
Definition: pquery.c:222
FetchDirection
Definition: parsenodes.h:2628
Definition: nodes.h:509
PGDLLIMPORT Portal ActivePortal
Definition: pquery.c:35
void PortalStart(Portal portal, ParamListInfo params, int eflags, Snapshot snapshot)
Definition: pquery.c:446
#define PGDLLIMPORT
Definition: c.h:1063
bool PortalRun(Portal portal, long count, bool isTopLevel, bool run_once, DestReceiver *dest, DestReceiver *altdest, char *completionTag)
Definition: pquery.c:690
PortalStrategy
Definition: portal.h:88
uint64 PortalRunFetch(Portal portal, FetchDirection fdirection, long count, DestReceiver *dest)
Definition: pquery.c:1396
List * FetchStatementTargetList(Node *stmt)
Definition: pquery.c:361
void PortalSetResultFormat(Portal portal, int nFormats, int16 *formats)
Definition: pquery.c:628
List * FetchPortalTargetList(Portal portal)
Definition: pquery.c:339
Definition: pg_list.h:45