PostgreSQL Source Code  git master
nodeForeignscan.c File Reference
#include "postgres.h"
#include "executor/executor.h"
#include "executor/nodeForeignscan.h"
#include "foreign/fdwapi.h"
#include "utils/memutils.h"
#include "utils/rel.h"
Include dependency graph for nodeForeignscan.c:

Go to the source code of this file.

Functions

static TupleTableSlotForeignNext (ForeignScanState *node)
 
static bool ForeignRecheck (ForeignScanState *node, TupleTableSlot *slot)
 
static TupleTableSlotExecForeignScan (PlanState *pstate)
 
ForeignScanStateExecInitForeignScan (ForeignScan *node, EState *estate, int eflags)
 
void ExecEndForeignScan (ForeignScanState *node)
 
void ExecReScanForeignScan (ForeignScanState *node)
 
void ExecForeignScanEstimate (ForeignScanState *node, ParallelContext *pcxt)
 
void ExecForeignScanInitializeDSM (ForeignScanState *node, ParallelContext *pcxt)
 
void ExecForeignScanReInitializeDSM (ForeignScanState *node, ParallelContext *pcxt)
 
void ExecForeignScanInitializeWorker (ForeignScanState *node, ParallelWorkerContext *pwcxt)
 
void ExecShutdownForeignScan (ForeignScanState *node)
 

Function Documentation

◆ ExecEndForeignScan()

void ExecEndForeignScan ( ForeignScanState node)

Definition at line 241 of file nodeForeignscan.c.

References CMD_SELECT, FdwRoutine::EndDirectModify, FdwRoutine::EndForeignScan, ExecClearTuple(), ExecCloseScanRelation(), ExecEndNode(), ExecFreeExprContext(), ForeignScanState::fdwroutine, ForeignScan::operation, outerPlanState, PlanState::plan, ScanState::ps, PlanState::ps_ResultTupleSlot, ForeignScanState::ss, ScanState::ss_currentRelation, and ScanState::ss_ScanTupleSlot.

Referenced by ExecEndNode().

242 {
243  ForeignScan *plan = (ForeignScan *) node->ss.ps.plan;
244 
245  /* Let the FDW shut down */
246  if (plan->operation != CMD_SELECT)
247  node->fdwroutine->EndDirectModify(node);
248  else
249  node->fdwroutine->EndForeignScan(node);
250 
251  /* Shut down any outer plan. */
252  if (outerPlanState(node))
254 
255  /* Free the exprcontext */
256  ExecFreeExprContext(&node->ss.ps);
257 
258  /* clean out the tuple table */
261 
262  /* close the relation. */
263  if (node->ss.ss_currentRelation)
265 }
EndDirectModify_function EndDirectModify
Definition: fdwapi.h:220
ScanState ss
Definition: execnodes.h:1641
void ExecEndNode(PlanState *node)
Definition: execProcnode.c:538
TupleTableSlot * ExecClearTuple(TupleTableSlot *slot)
Definition: execTuples.c:475
TupleTableSlot * ss_ScanTupleSlot
Definition: execnodes.h:1195
Relation ss_currentRelation
Definition: execnodes.h:1193
void ExecFreeExprContext(PlanState *planstate)
Definition: execUtils.c:566
CmdType operation
Definition: plannodes.h:612
PlanState ps
Definition: execnodes.h:1192
TupleTableSlot * ps_ResultTupleSlot
Definition: execnodes.h:946
#define outerPlanState(node)
Definition: execnodes.h:966
EndForeignScan_function EndForeignScan
Definition: fdwapi.h:193
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
Plan * plan
Definition: execnodes.h:912
void ExecCloseScanRelation(Relation scanrel)
Definition: execUtils.c:701

◆ ExecForeignScan()

static TupleTableSlot* ExecForeignScan ( PlanState pstate)
static

Definition at line 117 of file nodeForeignscan.c.

References castNode, ExecScan(), ForeignNext(), ForeignRecheck(), and ForeignScanState::ss.

Referenced by ExecInitForeignScan().

118 {
119  ForeignScanState *node = castNode(ForeignScanState, pstate);
120 
121  return ExecScan(&node->ss,
124 }
ScanState ss
Definition: execnodes.h:1641
#define castNode(_type_, nodeptr)
Definition: nodes.h:585
TupleTableSlot * ExecScan(ScanState *node, ExecScanAccessMtd accessMtd, ExecScanRecheckMtd recheckMtd)
Definition: execScan.c:121
static bool ForeignRecheck(ForeignScanState *node, TupleTableSlot *slot)
bool(* ExecScanRecheckMtd)(ScanState *node, TupleTableSlot *slot)
Definition: executor.h:421
static TupleTableSlot * ForeignNext(ForeignScanState *node)
TupleTableSlot *(* ExecScanAccessMtd)(ScanState *node)
Definition: executor.h:420

◆ ExecForeignScanEstimate()

void ExecForeignScanEstimate ( ForeignScanState node,
ParallelContext pcxt 
)

Definition at line 298 of file nodeForeignscan.c.

References FdwRoutine::EstimateDSMForeignScan, ParallelContext::estimator, ForeignScanState::fdwroutine, ForeignScanState::pscan_len, shm_toc_estimate_chunk, and shm_toc_estimate_keys.

Referenced by ExecParallelEstimate().

299 {
300  FdwRoutine *fdwroutine = node->fdwroutine;
301 
302  if (fdwroutine->EstimateDSMForeignScan)
303  {
304  node->pscan_len = fdwroutine->EstimateDSMForeignScan(node, pcxt);
306  shm_toc_estimate_keys(&pcxt->estimator, 1);
307  }
308 }
EstimateDSMForeignScan_function EstimateDSMForeignScan
Definition: fdwapi.h:240
shm_toc_estimator estimator
Definition: parallel.h:41
#define shm_toc_estimate_chunk(e, sz)
Definition: shm_toc.h:51
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
#define shm_toc_estimate_keys(e, cnt)
Definition: shm_toc.h:53

◆ ExecForeignScanInitializeDSM()

void ExecForeignScanInitializeDSM ( ForeignScanState node,
ParallelContext pcxt 
)

Definition at line 317 of file nodeForeignscan.c.

References ForeignScanState::fdwroutine, FdwRoutine::InitializeDSMForeignScan, PlanState::plan, Plan::plan_node_id, ScanState::ps, ForeignScanState::pscan_len, shm_toc_allocate(), shm_toc_insert(), ForeignScanState::ss, and ParallelContext::toc.

Referenced by ExecParallelInitializeDSM().

318 {
319  FdwRoutine *fdwroutine = node->fdwroutine;
320 
321  if (fdwroutine->InitializeDSMForeignScan)
322  {
323  int plan_node_id = node->ss.ps.plan->plan_node_id;
324  void *coordinate;
325 
326  coordinate = shm_toc_allocate(pcxt->toc, node->pscan_len);
327  fdwroutine->InitializeDSMForeignScan(node, pcxt, coordinate);
328  shm_toc_insert(pcxt->toc, plan_node_id, coordinate);
329  }
330 }
ScanState ss
Definition: execnodes.h:1641
int plan_node_id
Definition: plannodes.h:146
PlanState ps
Definition: execnodes.h:1192
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
InitializeDSMForeignScan_function InitializeDSMForeignScan
Definition: fdwapi.h:241
Plan * plan
Definition: execnodes.h:912
void * shm_toc_allocate(shm_toc *toc, Size nbytes)
Definition: shm_toc.c:88
void shm_toc_insert(shm_toc *toc, uint64 key, void *address)
Definition: shm_toc.c:171
shm_toc * toc
Definition: parallel.h:44

◆ ExecForeignScanInitializeWorker()

void ExecForeignScanInitializeWorker ( ForeignScanState node,
ParallelWorkerContext pwcxt 
)

Definition at line 360 of file nodeForeignscan.c.

References ForeignScanState::fdwroutine, FdwRoutine::InitializeWorkerForeignScan, PlanState::plan, Plan::plan_node_id, ScanState::ps, shm_toc_lookup(), ForeignScanState::ss, and ParallelWorkerContext::toc.

Referenced by ExecParallelInitializeWorker().

362 {
363  FdwRoutine *fdwroutine = node->fdwroutine;
364 
365  if (fdwroutine->InitializeWorkerForeignScan)
366  {
367  int plan_node_id = node->ss.ps.plan->plan_node_id;
368  void *coordinate;
369 
370  coordinate = shm_toc_lookup(pwcxt->toc, plan_node_id, false);
371  fdwroutine->InitializeWorkerForeignScan(node, pwcxt->toc, coordinate);
372  }
373 }
ScanState ss
Definition: execnodes.h:1641
InitializeWorkerForeignScan_function InitializeWorkerForeignScan
Definition: fdwapi.h:243
int plan_node_id
Definition: plannodes.h:146
PlanState ps
Definition: execnodes.h:1192
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
Plan * plan
Definition: execnodes.h:912
void * shm_toc_lookup(shm_toc *toc, uint64 key, bool noError)
Definition: shm_toc.c:232

◆ ExecForeignScanReInitializeDSM()

void ExecForeignScanReInitializeDSM ( ForeignScanState node,
ParallelContext pcxt 
)

Definition at line 339 of file nodeForeignscan.c.

References ForeignScanState::fdwroutine, PlanState::plan, Plan::plan_node_id, ScanState::ps, FdwRoutine::ReInitializeDSMForeignScan, shm_toc_lookup(), ForeignScanState::ss, and ParallelContext::toc.

Referenced by ExecParallelReInitializeDSM().

340 {
341  FdwRoutine *fdwroutine = node->fdwroutine;
342 
343  if (fdwroutine->ReInitializeDSMForeignScan)
344  {
345  int plan_node_id = node->ss.ps.plan->plan_node_id;
346  void *coordinate;
347 
348  coordinate = shm_toc_lookup(pcxt->toc, plan_node_id, false);
349  fdwroutine->ReInitializeDSMForeignScan(node, pcxt, coordinate);
350  }
351 }
ScanState ss
Definition: execnodes.h:1641
int plan_node_id
Definition: plannodes.h:146
PlanState ps
Definition: execnodes.h:1192
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
Plan * plan
Definition: execnodes.h:912
ReInitializeDSMForeignScan_function ReInitializeDSMForeignScan
Definition: fdwapi.h:242
void * shm_toc_lookup(shm_toc *toc, uint64 key, bool noError)
Definition: shm_toc.c:232
shm_toc * toc
Definition: parallel.h:44

◆ ExecInitForeignScan()

ForeignScanState* ExecInitForeignScan ( ForeignScan node,
EState estate,
int  eflags 
)

Definition at line 132 of file nodeForeignscan.c.

References Assert, FdwRoutine::BeginDirectModify, FdwRoutine::BeginForeignScan, CMD_SELECT, CreateTupleDescCopy(), EXEC_FLAG_BACKWARD, EXEC_FLAG_MARK, ExecAssignExprContext(), ExecAssignScanProjectionInfoWithVarno(), ExecForeignScan(), ExecInitNode(), ExecInitQual(), ExecInitResultTupleSlotTL(), ExecInitScanTupleSlot(), ExecOpenScanRelation(), PlanState::ExecProcNode, ExecTypeFromTL(), ForeignScan::fdw_recheck_quals, ForeignScan::fdw_scan_tlist, ForeignScan::fs_server, GetFdwRoutineByServerId(), GetFdwRoutineForRelation(), INDEX_VAR, makeNode, NIL, ForeignScan::operation, outerPlan, outerPlanState, Scan::plan, PlanState::plan, ScanState::ps, Plan::qual, PlanState::qual, RelationGetDescr, ForeignScan::scan, Scan::scanrelid, ForeignScanState::ss, ScanState::ss_currentRelation, and PlanState::state.

Referenced by ExecInitNode().

133 {
134  ForeignScanState *scanstate;
135  Relation currentRelation = NULL;
136  Index scanrelid = node->scan.scanrelid;
137  Index tlistvarno;
138  FdwRoutine *fdwroutine;
139 
140  /* check for unsupported flags */
141  Assert(!(eflags & (EXEC_FLAG_BACKWARD | EXEC_FLAG_MARK)));
142 
143  /*
144  * create state structure
145  */
146  scanstate = makeNode(ForeignScanState);
147  scanstate->ss.ps.plan = (Plan *) node;
148  scanstate->ss.ps.state = estate;
149  scanstate->ss.ps.ExecProcNode = ExecForeignScan;
150 
151  /*
152  * Miscellaneous initialization
153  *
154  * create expression context for node
155  */
156  ExecAssignExprContext(estate, &scanstate->ss.ps);
157 
158  /*
159  * open the base relation, if any, and acquire an appropriate lock on it;
160  * also acquire function pointers from the FDW's handler
161  */
162  if (scanrelid > 0)
163  {
164  currentRelation = ExecOpenScanRelation(estate, scanrelid, eflags);
165  scanstate->ss.ss_currentRelation = currentRelation;
166  fdwroutine = GetFdwRoutineForRelation(currentRelation, true);
167  }
168  else
169  {
170  /* We can't use the relcache, so get fdwroutine the hard way */
171  fdwroutine = GetFdwRoutineByServerId(node->fs_server);
172  }
173 
174  /*
175  * Determine the scan tuple type. If the FDW provided a targetlist
176  * describing the scan tuples, use that; else use base relation's rowtype.
177  */
178  if (node->fdw_scan_tlist != NIL || currentRelation == NULL)
179  {
180  TupleDesc scan_tupdesc;
181 
182  scan_tupdesc = ExecTypeFromTL(node->fdw_scan_tlist, false);
183  ExecInitScanTupleSlot(estate, &scanstate->ss, scan_tupdesc);
184  /* Node's targetlist will contain Vars with varno = INDEX_VAR */
185  tlistvarno = INDEX_VAR;
186  }
187  else
188  {
189  TupleDesc scan_tupdesc;
190 
191  /* don't trust FDWs to return tuples fulfilling NOT NULL constraints */
192  scan_tupdesc = CreateTupleDescCopy(RelationGetDescr(currentRelation));
193  ExecInitScanTupleSlot(estate, &scanstate->ss, scan_tupdesc);
194  /* Node's targetlist will contain Vars with varno = scanrelid */
195  tlistvarno = scanrelid;
196  }
197 
198  /*
199  * Initialize result slot, type and projection.
200  */
201  ExecInitResultTupleSlotTL(estate, &scanstate->ss.ps);
202  ExecAssignScanProjectionInfoWithVarno(&scanstate->ss, tlistvarno);
203 
204  /*
205  * initialize child expressions
206  */
207  scanstate->ss.ps.qual =
208  ExecInitQual(node->scan.plan.qual, (PlanState *) scanstate);
209  scanstate->fdw_recheck_quals =
210  ExecInitQual(node->fdw_recheck_quals, (PlanState *) scanstate);
211 
212  /*
213  * Initialize FDW-related state.
214  */
215  scanstate->fdwroutine = fdwroutine;
216  scanstate->fdw_state = NULL;
217 
218  /* Initialize any outer plan. */
219  if (outerPlan(node))
220  outerPlanState(scanstate) =
221  ExecInitNode(outerPlan(node), estate, eflags);
222 
223  /*
224  * Tell the FDW to initialize the scan.
225  */
226  if (node->operation != CMD_SELECT)
227  fdwroutine->BeginDirectModify(scanstate, eflags);
228  else
229  fdwroutine->BeginForeignScan(scanstate, eflags);
230 
231  return scanstate;
232 }
BeginForeignScan_function BeginForeignScan
Definition: fdwapi.h:190
#define NIL
Definition: pg_list.h:69
ScanState ss
Definition: execnodes.h:1641
List * qual
Definition: plannodes.h:148
TupleDesc CreateTupleDescCopy(TupleDesc tupdesc)
Definition: tupdesc.c:112
Plan plan
Definition: plannodes.h:342
Index scanrelid
Definition: plannodes.h:343
Oid fs_server
Definition: plannodes.h:613
#define RelationGetDescr(relation)
Definition: rel.h:433
FdwRoutine * GetFdwRoutineByServerId(Oid serverid)
Definition: foreign.c:330
static TupleTableSlot * ExecForeignScan(PlanState *pstate)
List * fdw_scan_tlist
Definition: plannodes.h:616
Relation ss_currentRelation
Definition: execnodes.h:1193
EState * state
Definition: execnodes.h:914
ExprState * fdw_recheck_quals
Definition: execnodes.h:1642
CmdType operation
Definition: plannodes.h:612
ExprState * ExecInitQual(List *qual, PlanState *parent)
Definition: execExpr.c:205
void ExecAssignScanProjectionInfoWithVarno(ScanState *node, Index varno)
Definition: execScan.c:248
PlanState ps
Definition: execnodes.h:1192
Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags)
Definition: execUtils.c:643
#define EXEC_FLAG_BACKWARD
Definition: executor.h:60
#define outerPlanState(node)
Definition: execnodes.h:966
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
List * fdw_recheck_quals
Definition: plannodes.h:617
TupleDesc ExecTypeFromTL(List *targetList, bool hasoid)
Definition: execTuples.c:965
#define outerPlan(node)
Definition: plannodes.h:177
BeginDirectModify_function BeginDirectModify
Definition: fdwapi.h:218
ExecProcNodeMtd ExecProcNode
Definition: execnodes.h:918
unsigned int Index
Definition: c.h:442
void ExecInitResultTupleSlotTL(EState *estate, PlanState *planstate)
Definition: execTuples.c:890
Plan * plan
Definition: execnodes.h:912
#define makeNode(_type_)
Definition: nodes.h:564
#define Assert(condition)
Definition: c.h:699
#define EXEC_FLAG_MARK
Definition: executor.h:61
void ExecAssignExprContext(EState *estate, PlanState *planstate)
Definition: execUtils.c:428
ExprState * qual
Definition: execnodes.h:930
FdwRoutine * GetFdwRoutineForRelation(Relation relation, bool makecopy)
Definition: foreign.c:395
void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate, TupleDesc tupledesc)
Definition: execTuples.c:915
#define INDEX_VAR
Definition: primnodes.h:155
PlanState * ExecInitNode(Plan *node, EState *estate, int eflags)
Definition: execProcnode.c:139

◆ ExecReScanForeignScan()

void ExecReScanForeignScan ( ForeignScanState node)

Definition at line 274 of file nodeForeignscan.c.

References PlanState::chgParam, ExecReScan(), ExecScanReScan(), ForeignScanState::fdwroutine, outerPlan, outerPlanState, FdwRoutine::ReScanForeignScan, and ForeignScanState::ss.

Referenced by ExecReScan().

275 {
277 
278  node->fdwroutine->ReScanForeignScan(node);
279 
280  /*
281  * If chgParam of subnode is not null then plan will be re-scanned by
282  * first ExecProcNode. outerPlan may also be NULL, in which case there is
283  * nothing to rescan at all.
284  */
285  if (outerPlan != NULL && outerPlan->chgParam == NULL)
286  ExecReScan(outerPlan);
287 
288  ExecScanReScan(&node->ss);
289 }
ScanState ss
Definition: execnodes.h:1641
void ExecReScan(PlanState *node)
Definition: execAmi.c:76
#define outerPlanState(node)
Definition: execnodes.h:966
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
Bitmapset * chgParam
Definition: execnodes.h:941
#define outerPlan(node)
Definition: plannodes.h:177
ReScanForeignScan_function ReScanForeignScan
Definition: fdwapi.h:192
void ExecScanReScan(ScanState *node)
Definition: execScan.c:262

◆ ExecShutdownForeignScan()

void ExecShutdownForeignScan ( ForeignScanState node)

Definition at line 383 of file nodeForeignscan.c.

References ForeignScanState::fdwroutine, and FdwRoutine::ShutdownForeignScan.

Referenced by ExecShutdownNode().

384 {
385  FdwRoutine *fdwroutine = node->fdwroutine;
386 
387  if (fdwroutine->ShutdownForeignScan)
388  fdwroutine->ShutdownForeignScan(node);
389 }
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
ShutdownForeignScan_function ShutdownForeignScan
Definition: fdwapi.h:244

◆ ForeignNext()

static TupleTableSlot * ForeignNext ( ForeignScanState node)
static

Definition at line 42 of file nodeForeignscan.c.

References CMD_SELECT, ExecMaterializeSlot(), ForeignScanState::fdwroutine, ForeignScan::fsSystemCol, FdwRoutine::IterateDirectModify, FdwRoutine::IterateForeignScan, MemoryContextSwitchTo(), ForeignScan::operation, PlanState::plan, ScanState::ps, PlanState::ps_ExprContext, RelationGetRelid, ForeignScanState::ss, ScanState::ss_currentRelation, HeapTupleData::t_tableOid, and TupIsNull.

Referenced by ExecForeignScan().

43 {
44  TupleTableSlot *slot;
45  ForeignScan *plan = (ForeignScan *) node->ss.ps.plan;
46  ExprContext *econtext = node->ss.ps.ps_ExprContext;
47  MemoryContext oldcontext;
48 
49  /* Call the Iterate function in short-lived context */
50  oldcontext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory);
51  if (plan->operation != CMD_SELECT)
52  slot = node->fdwroutine->IterateDirectModify(node);
53  else
54  slot = node->fdwroutine->IterateForeignScan(node);
55  MemoryContextSwitchTo(oldcontext);
56 
57  /*
58  * If any system columns are requested, we have to force the tuple into
59  * physical-tuple form to avoid "cannot extract system attribute from
60  * virtual tuple" errors later. We also insert a valid value for
61  * tableoid, which is the only actually-useful system column.
62  */
63  if (plan->fsSystemCol && !TupIsNull(slot))
64  {
65  HeapTuple tup = ExecMaterializeSlot(slot);
66 
68  }
69 
70  return slot;
71 }
ScanState ss
Definition: execnodes.h:1641
ExprContext * ps_ExprContext
Definition: execnodes.h:947
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
Definition: palloc.h:109
Relation ss_currentRelation
Definition: execnodes.h:1193
CmdType operation
Definition: plannodes.h:612
IterateDirectModify_function IterateDirectModify
Definition: fdwapi.h:219
PlanState ps
Definition: execnodes.h:1192
#define TupIsNull(slot)
Definition: tuptable.h:146
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
Oid t_tableOid
Definition: htup.h:66
Plan * plan
Definition: execnodes.h:912
IterateForeignScan_function IterateForeignScan
Definition: fdwapi.h:191
HeapTuple ExecMaterializeSlot(TupleTableSlot *slot)
Definition: execTuples.c:781
#define RelationGetRelid(relation)
Definition: rel.h:407
bool fsSystemCol
Definition: plannodes.h:619

◆ ForeignRecheck()

static bool ForeignRecheck ( ForeignScanState node,
TupleTableSlot slot 
)
static

Definition at line 77 of file nodeForeignscan.c.

References ExprContext::ecxt_scantuple, ExecQual(), ForeignScanState::fdw_recheck_quals, ForeignScanState::fdwroutine, ScanState::ps, PlanState::ps_ExprContext, FdwRoutine::RecheckForeignScan, ResetExprContext, and ForeignScanState::ss.

Referenced by ExecForeignScan().

78 {
79  FdwRoutine *fdwroutine = node->fdwroutine;
80  ExprContext *econtext;
81 
82  /*
83  * extract necessary information from foreign scan node
84  */
85  econtext = node->ss.ps.ps_ExprContext;
86 
87  /* Does the tuple meet the remote qual condition? */
88  econtext->ecxt_scantuple = slot;
89 
90  ResetExprContext(econtext);
91 
92  /*
93  * If an outer join is pushed down, RecheckForeignScan may need to store a
94  * different tuple in the slot, because a different set of columns may go
95  * to NULL upon recheck. Otherwise, it shouldn't need to change the slot
96  * contents, just return true or false to indicate whether the quals still
97  * pass. For simple cases, setting fdw_recheck_quals may be easier than
98  * providing this callback.
99  */
100  if (fdwroutine->RecheckForeignScan &&
101  !fdwroutine->RecheckForeignScan(node, slot))
102  return false;
103 
104  return ExecQual(node->fdw_recheck_quals, econtext);
105 }
ScanState ss
Definition: execnodes.h:1641
ExprContext * ps_ExprContext
Definition: execnodes.h:947
ExprState * fdw_recheck_quals
Definition: execnodes.h:1642
static bool ExecQual(ExprState *state, ExprContext *econtext)
Definition: executor.h:360
RecheckForeignScan_function RecheckForeignScan
Definition: fdwapi.h:225
PlanState ps
Definition: execnodes.h:1192
struct FdwRoutine * fdwroutine
Definition: execnodes.h:1645
TupleTableSlot * ecxt_scantuple
Definition: execnodes.h:218
#define ResetExprContext(econtext)
Definition: executor.h:482