PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2024, 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
20struct PlannedStmt; /* avoid including plannodes.h here */
21
22
24
25
27
28extern List *FetchPortalTargetList(Portal portal);
29
31
32extern void PortalStart(Portal portal, ParamListInfo params,
33 int eflags, Snapshot snapshot);
34
35extern void PortalSetResultFormat(Portal portal, int nFormats,
36 int16 *formats);
37
38extern bool PortalRun(Portal portal, long count, bool isTopLevel,
40 QueryCompletion *qc);
41
42extern uint64 PortalRunFetch(Portal portal,
43 FetchDirection fdirection,
44 long count,
46
47extern bool PlannedStmtRequiresSnapshot(struct PlannedStmt *pstmt);
48
49extern void EnsurePortalSnapshotExists(void);
50
51#endif /* PQUERY_H */
#define PGDLLIMPORT
Definition: c.h:1274
int16_t int16
Definition: c.h:480
uint64_t uint64
Definition: c.h:486
#define stmt
Definition: indent_codes.h:59
FetchDirection
Definition: parsenodes.h:3343
PortalStrategy
Definition: portal.h:90
PortalStrategy ChoosePortalStrategy(List *stmts)
Definition: pquery.c:209
void EnsurePortalSnapshotExists(void)
Definition: pquery.c:1771
void PortalSetResultFormat(Portal portal, int nFormats, int16 *formats)
Definition: pquery.c:623
void PortalStart(Portal portal, ParamListInfo params, int eflags, Snapshot snapshot)
Definition: pquery.c:433
bool PlannedStmtRequiresSnapshot(struct PlannedStmt *pstmt)
Definition: pquery.c:1723
List * FetchStatementTargetList(Node *stmt)
Definition: pquery.c:348
uint64 PortalRunFetch(Portal portal, FetchDirection fdirection, long count, DestReceiver *dest)
Definition: pquery.c:1385
PGDLLIMPORT Portal ActivePortal
Definition: pquery.c:35
List * FetchPortalTargetList(Portal portal)
Definition: pquery.c:326
bool PortalRun(Portal portal, long count, bool isTopLevel, DestReceiver *dest, DestReceiver *altdest, QueryCompletion *qc)
Definition: pquery.c:684
Definition: pg_list.h:54
Definition: nodes.h:129