Header And Logo

PostgreSQL
| The world's most advanced open source database.

pquery.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pquery.h
00004  *    prototypes for pquery.c.
00005  *
00006  *
00007  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00008  * Portions Copyright (c) 1994, Regents of the University of California
00009  *
00010  * src/include/tcop/pquery.h
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef PQUERY_H
00015 #define PQUERY_H
00016 
00017 #include "nodes/parsenodes.h"
00018 #include "utils/portal.h"
00019 
00020 
00021 extern PGDLLIMPORT Portal ActivePortal;
00022 
00023 
00024 extern PortalStrategy ChoosePortalStrategy(List *stmts);
00025 
00026 extern List *FetchPortalTargetList(Portal portal);
00027 
00028 extern List *FetchStatementTargetList(Node *stmt);
00029 
00030 extern void PortalStart(Portal portal, ParamListInfo params,
00031             int eflags, Snapshot snapshot);
00032 
00033 extern void PortalSetResultFormat(Portal portal, int nFormats,
00034                       int16 *formats);
00035 
00036 extern bool PortalRun(Portal portal, long count, bool isTopLevel,
00037           DestReceiver *dest, DestReceiver *altdest,
00038           char *completionTag);
00039 
00040 extern long PortalRunFetch(Portal portal,
00041                FetchDirection fdirection,
00042                long count,
00043                DestReceiver *dest);
00044 
00045 #endif   /* PQUERY_H */