/*-------------------------------------------------------------------------
 *
 * pquery.h--
 *    prototypes for pquery.c.
 *
 *
 * Copyright (c) 1994, Regents of the University of California
 *
 * pquery.h,v 1.2 1994/11/11 08:12:39 andrew Exp
 *
 *-------------------------------------------------------------------------
 */
#ifndef PQUERY_H
#define PQUERY_H

#include "executor/execdesc.h"
#include "tcop/dest.h"

extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
				  char **argv, Oid *typev, int nargs,
				  CommandDest dest);

extern EState *CreateExecutorState();


extern void ProcessPortal(String portalName, Query *parseTree,
			  Plan *plan, EState *state, AttrInfo *attinfo, 
			  CommandDest dest);

extern void ProcessQueryDesc(QueryDesc *queryDesc);

extern void ProcessQuery(Query *parsetree, Plan *plan, char *argv, Oid *typev,
			 int nargs, CommandDest dest);

#endif /* pqueryIncluded */
