mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-06 17:27:37 +08:00
bits indicating which optional capabilities can actually be exercised at runtime. This will allow Sort and Material nodes, and perhaps later other nodes, to avoid unnecessary overhead in common cases. This commit just adds the infrastructure and arranges to pass the correct flag values down to plan nodes; none of the actual optimizations are here yet. I'm committing this separately in case anyone wants to measure the added overhead. (It should be negligible.) Simon Riggs and Tom Lane
28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeFunctionscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/executor/nodeFunctionscan.h,v 1.8 2006/02/28 04:10:28 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 ExecFunctionMarkPos(FunctionScanState *node);
|
|
extern void ExecFunctionRestrPos(FunctionScanState *node);
|
|
extern void ExecFunctionReScan(FunctionScanState *node, ExprContext *exprCtxt);
|
|
|
|
#endif /* NODEFUNCTIONSCAN_H */
|