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
|
|
|
*
|
|
|
|
*
|
2001-01-24 20:43:33 +01:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
2001-10-28 07:26:15 +01:00
|
|
|
* $Id: execdesc.h,v 1.16 2001/10/28 06:26:06 momjian Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef EXECDESC_H
|
|
|
|
#define EXECDESC_H
|
|
|
|
|
1999-07-16 01:04:24 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
1999-07-16 19:07:40 +02:00
|
|
|
#include "nodes/plannodes.h"
|
|
|
|
#include "tcop/dest.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);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* EXECDESC_H */
|