1996-07-09 08:22:35 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01: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
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* $Id: execdesc.h,v 1.10 1999/02/13 23:21:23 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 */
|
1998-09-01 06:40:42 +02:00
|
|
|
extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
|
1997-09-07 07:04:48 +02:00
|
|
|
CommandDest dest);
|
1996-07-09 08:22:35 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* EXECDESC_H */
|