1996-07-09 02:22:35 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-02-13 18:22:53 -05:00
|
|
|
* execdesc.h
|
1997-09-07 01:04:48 -04:00
|
|
|
* plan and query descriptor accessor macros used by the executor
|
|
|
|
|
* and related modules.
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
2000-01-26 00:58:53 -05:00
|
|
|
* $Id: execdesc.h,v 1.13 2000/01/26 05:58:05 momjian Exp $
|
1996-07-09 02:22:35 -04:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef EXECDESC_H
|
|
|
|
|
#define EXECDESC_H
|
|
|
|
|
|
1999-07-15 19:04:24 -04:00
|
|
|
#include "nodes/parsenodes.h"
|
1999-07-16 13:07:40 -04:00
|
|
|
#include "nodes/plannodes.h"
|
|
|
|
|
#include "tcop/dest.h"
|
1996-07-09 02:22:35 -04:00
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 01:04:48 -04:00
|
|
|
* query descriptor:
|
|
|
|
|
* a QueryDesc encapsulates everything that the executor
|
|
|
|
|
* needs to execute the query
|
1996-07-09 02:22:35 -04:00
|
|
|
* ---------------------
|
|
|
|
|
*/
|
1997-09-07 01:04:48 -04:00
|
|
|
typedef struct QueryDesc
|
|
|
|
|
{
|
1997-09-07 22:41:22 -04:00
|
|
|
CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */
|
|
|
|
|
Query *parsetree;
|
|
|
|
|
Plan *plantree;
|
|
|
|
|
CommandDest dest; /* the destination output of the execution */
|
1997-09-08 17:56:23 -04:00
|
|
|
} QueryDesc;
|
1996-07-09 02:22:35 -04:00
|
|
|
|
|
|
|
|
/* in pquery.c */
|
1998-09-01 00:40:42 -04:00
|
|
|
extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
|
1997-09-07 01:04:48 -04:00
|
|
|
CommandDest dest);
|
1996-07-09 02:22:35 -04:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* EXECDESC_H */
|