mirror of
https://github.com/postgres/postgres.git
synced 2026-02-23 09:52:14 -05:00
right thing with variable-free clauses that contain noncachable functions, such as 'WHERE random() < 0.5' --- these are evaluated once per potential output tuple. Expressions that contain only Params are now candidates to be indexscan quals --- for example, 'var = ($1 + 1)' can now be indexed. Cope with RelabelType nodes atop potential indexscan variables --- this oversight prevents 7.0.* from recognizing some potentially indexscanable situations.
26 lines
801 B
C
26 lines
801 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeNestloop.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $Id: nodeNestloop.h,v 1.13 2000/08/13 02:50:20 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODENESTLOOP_H
|
|
#define NODENESTLOOP_H
|
|
|
|
#include "nodes/plannodes.h"
|
|
|
|
extern TupleTableSlot *ExecNestLoop(NestLoop *node);
|
|
extern bool ExecInitNestLoop(NestLoop *node, EState *estate, Plan *parent);
|
|
extern int ExecCountSlotsNestLoop(NestLoop *node);
|
|
extern void ExecEndNestLoop(NestLoop *node);
|
|
extern void ExecReScanNestLoop(NestLoop *node, ExprContext *exprCtxt,
|
|
Plan *parent);
|
|
|
|
#endif /* NODENESTLOOP_H */
|