~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/tcop/pquery.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pquery.h
 
4
 *        prototypes for pquery.c.
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL$
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef PQUERY_H
 
15
#define PQUERY_H
 
16
 
 
17
#include "nodes/parsenodes.h"
 
18
#include "utils/portal.h"
 
19
 
 
20
 
 
21
extern PGDLLIMPORT Portal ActivePortal;
 
22
 
 
23
 
 
24
extern PortalStrategy ChoosePortalStrategy(List *stmts);
 
25
 
 
26
extern List *FetchPortalTargetList(Portal portal);
 
27
 
 
28
extern List *FetchStatementTargetList(Node *stmt);
 
29
 
 
30
extern void PortalStart(Portal portal, ParamListInfo params,
 
31
                        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
                  DestReceiver *dest, DestReceiver *altdest,
 
38
                  char *completionTag);
 
39
 
 
40
extern long PortalRunFetch(Portal portal,
 
41
                           FetchDirection fdirection,
 
42
                           long count,
 
43
                           DestReceiver *dest);
 
44
 
 
45
#endif   /* PQUERY_H */