pquery.h 992 字节
Newer Older
1 2
/*-------------------------------------------------------------------------
 *
3
 * pquery.h
4
 *	  prototypes for pquery.c.
5 6
 *
 *
B
Bruce Momjian 已提交
7
 * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
B
Add:  
Bruce Momjian 已提交
8
 * Portions Copyright (c) 1994, Regents of the University of California
9
 *
10
 * $Id: pquery.h,v 1.25 2003/05/02 20:54:36 tgl Exp $
11 12 13 14 15 16
 *
 *-------------------------------------------------------------------------
 */
#ifndef PQUERY_H
#define PQUERY_H

17
#include "utils/portal.h"
18 19


20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
extern void ProcessQuery(Query *parsetree,
						 Plan *plan,
						 ParamListInfo params,
						 const char *portalName,
						 CommandDest dest,
						 char *completionTag);

extern void PortalStart(Portal portal, ParamListInfo params);

extern bool PortalRun(Portal portal, long count,
					  CommandDest dest, CommandDest altdest,
					  char *completionTag);

extern long PortalRunFetch(Portal portal,
						   FetchDirection fdirection,
						   long count,
						   CommandDest dest);
37

38
#endif   /* PQUERY_H */