1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* execdesc.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* plan and query descriptor accessor macros used by the executor
|
|
|
|
* and related modules.
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-09-08 23:56:23 +02:00
|
|
|
* $Id: execdesc.h,v 1.6 1997/09/08 21:51:50 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef EXECDESC_H
|
|
|
|
#define EXECDESC_H
|
|
|
|
|
1996-11-04 13:11:44 +01:00
|
|
|
#include <tcop/dest.h>
|
|
|
|
#include <nodes/plannodes.h>
|
|
|
|
#include <nodes/parsenodes.h>
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* query descriptor:
|
|
|
|
* a QueryDesc encapsulates everything that the executor
|
|
|
|
* needs to execute the query
|
1996-07-09 08:22:35 +02:00
|
|
|
* ---------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef struct QueryDesc
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */
|
|
|
|
Query *parsetree;
|
|
|
|
Plan *plantree;
|
|
|
|
CommandDest dest; /* the destination output of the execution */
|
1997-09-08 23:56:23 +02:00
|
|
|
} QueryDesc;
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
/* in pquery.c */
|
1997-09-07 07:04:48 +02:00
|
|
|
extern QueryDesc *
|
1997-09-08 23:56:23 +02:00
|
|
|
CreateQueryDesc(Query *parsetree, Plan *plantree,
|
1997-09-07 07:04:48 +02:00
|
|
|
CommandDest dest);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#endif /* EXECDESC_H */
|