mirror of
https://github.com/postgres/postgres.git
synced 2026-02-03 20:40:14 -05:00
This facility replaces the former mark/restore support but is otherwise upward-compatible with previous uses. It's expected to be needed for single evaluation of CTEs and also for window functions, so I'm committing it separately instead of waiting for either one of those patches to be finished. Per discussion with Greg Stark and Hitoshi Harada. Note: I removed nodeFunctionscan's mark/restore support, instead of bothering to update it for this change, because it was dead code anyway.
25 lines
919 B
C
25 lines
919 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeFunctionscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/executor/nodeFunctionscan.h,v 1.12 2008/10/01 19:51:49 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODEFUNCTIONSCAN_H
|
|
#define NODEFUNCTIONSCAN_H
|
|
|
|
#include "nodes/execnodes.h"
|
|
|
|
extern int ExecCountSlotsFunctionScan(FunctionScan *node);
|
|
extern FunctionScanState *ExecInitFunctionScan(FunctionScan *node, EState *estate, int eflags);
|
|
extern TupleTableSlot *ExecFunctionScan(FunctionScanState *node);
|
|
extern void ExecEndFunctionScan(FunctionScanState *node);
|
|
extern void ExecFunctionReScan(FunctionScanState *node, ExprContext *exprCtxt);
|
|
|
|
#endif /* NODEFUNCTIONSCAN_H */
|