mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 09:16:53 +02:00
5c25d60244
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* execdesc.h
|
|
* plan and query descriptor accessor macros used by the executor
|
|
* and related modules.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: execdesc.h,v 1.13 2000/01/26 05:58:05 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef EXECDESC_H
|
|
#define EXECDESC_H
|
|
|
|
#include "nodes/parsenodes.h"
|
|
#include "nodes/plannodes.h"
|
|
#include "tcop/dest.h"
|
|
|
|
/* ----------------
|
|
* query descriptor:
|
|
* a QueryDesc encapsulates everything that the executor
|
|
* needs to execute the query
|
|
* ---------------------
|
|
*/
|
|
typedef struct QueryDesc
|
|
{
|
|
CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */
|
|
Query *parsetree;
|
|
Plan *plantree;
|
|
CommandDest dest; /* the destination output of the execution */
|
|
} QueryDesc;
|
|
|
|
/* in pquery.c */
|
|
extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
|
|
CommandDest dest);
|
|
|
|
#endif /* EXECDESC_H */
|