PostgreSQL Source Code git master
Loading...
Searching...
No Matches
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-2026, 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
20typedef struct PlannedStmt 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,
44 long count,
45 DestReceiver *dest);
46
48
49extern void EnsurePortalSnapshotExists(void);
50
51#endif /* PQUERY_H */
#define PGDLLIMPORT
Definition c.h:1328
int16_t int16
Definition c.h:541
uint64_t uint64
Definition c.h:547
#define stmt
FetchDirection
PortalStrategy
Definition portal.h:90
PortalStrategy ChoosePortalStrategy(List *stmts)
Definition pquery.c:205
bool PlannedStmtRequiresSnapshot(PlannedStmt *pstmt)
Definition pquery.c:1711
void EnsurePortalSnapshotExists(void)
Definition pquery.c:1760
void PortalSetResultFormat(Portal portal, int nFormats, int16 *formats)
Definition pquery.c:619
void PortalStart(Portal portal, ParamListInfo params, int eflags, Snapshot snapshot)
Definition pquery.c:429
List * FetchStatementTargetList(Node *stmt)
Definition pquery.c:344
uint64 PortalRunFetch(Portal portal, FetchDirection fdirection, long count, DestReceiver *dest)
Definition pquery.c:1373
PGDLLIMPORT Portal ActivePortal
Definition pquery.c:36
List * FetchPortalTargetList(Portal portal)
Definition pquery.c:322
bool PortalRun(Portal portal, long count, bool isTopLevel, DestReceiver *dest, DestReceiver *altdest, QueryCompletion *qc)
Definition pquery.c:680
static int fb(int x)
Definition pg_list.h:54
Definition nodes.h:135