PostgreSQL Source Code git master
Loading...
Searching...
No Matches
executor.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * executor.h
4 * support for the POSTGRES executor module
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/executor/executor.h
11 *
12 *-------------------------------------------------------------------------
13 */
14#ifndef EXECUTOR_H
15#define EXECUTOR_H
16
17#include "datatype/timestamp.h"
18#include "executor/execdesc.h"
19#include "fmgr.h"
20#include "nodes/lockoptions.h"
21#include "nodes/parsenodes.h"
22#include "utils/memutils.h"
23
24
25/*
26 * The "eflags" argument to ExecutorStart and the various ExecInitNode
27 * routines is a bitwise OR of the following flag bits, which tell the
28 * called plan node what to expect. Note that the flags will get modified
29 * as they are passed down the plan tree, since an upper node may require
30 * functionality in its subnode not demanded of the plan as a whole
31 * (example: MergeJoin requires mark/restore capability in its inner input),
32 * or an upper node may shield its input from some functionality requirement
33 * (example: Materialize shields its input from needing to do backward scan).
34 *
35 * EXPLAIN_ONLY indicates that the plan tree is being initialized just so
36 * EXPLAIN can print it out; it will not be run. Hence, no side-effects
37 * of startup should occur. However, error checks (such as permission checks)
38 * should be performed.
39 *
40 * EXPLAIN_GENERIC can only be used together with EXPLAIN_ONLY. It indicates
41 * that a generic plan is being shown using EXPLAIN (GENERIC_PLAN), which
42 * means that missing parameter values must be tolerated. Currently, the only
43 * effect is to suppress execution-time partition pruning.
44 *
45 * REWIND indicates that the plan node should try to efficiently support
46 * rescans without parameter changes. (Nodes must support ExecReScan calls
47 * in any case, but if this flag was not given, they are at liberty to do it
48 * through complete recalculation. Note that a parameter change forces a
49 * full recalculation in any case.)
50 *
51 * BACKWARD indicates that the plan node must respect the es_direction flag.
52 * When this is not passed, the plan node will only be run forwards.
53 *
54 * MARK indicates that the plan node must support Mark/Restore calls.
55 * When this is not passed, no Mark/Restore will occur.
56 *
57 * SKIP_TRIGGERS tells ExecutorStart/ExecutorFinish to skip calling
58 * AfterTriggerBeginQuery/AfterTriggerEndQuery. This does not necessarily
59 * mean that the plan can't queue any AFTER triggers; just that the caller
60 * is responsible for there being a trigger context for them to be queued in.
61 *
62 * WITH_NO_DATA indicates that we are performing REFRESH MATERIALIZED VIEW
63 * ... WITH NO DATA. Currently, the only effect is to suppress errors about
64 * scanning unpopulated materialized views.
65 */
66#define EXEC_FLAG_EXPLAIN_ONLY 0x0001 /* EXPLAIN, no ANALYZE */
67#define EXEC_FLAG_EXPLAIN_GENERIC 0x0002 /* EXPLAIN (GENERIC_PLAN) */
68#define EXEC_FLAG_REWIND 0x0004 /* need efficient rescan */
69#define EXEC_FLAG_BACKWARD 0x0008 /* need backward scan */
70#define EXEC_FLAG_MARK 0x0010 /* need mark/restore */
71#define EXEC_FLAG_SKIP_TRIGGERS 0x0020 /* skip AfterTrigger setup */
72#define EXEC_FLAG_WITH_NO_DATA 0x0040 /* REFRESH ... WITH NO DATA */
73
74
75/* Hook for plugins to get control in ExecutorStart() */
76typedef void (*ExecutorStart_hook_type) (QueryDesc *queryDesc, int eflags);
78
79/* Hook for plugins to get control in ExecutorRun() */
80typedef void (*ExecutorRun_hook_type) (QueryDesc *queryDesc,
81 ScanDirection direction,
82 uint64 count);
84
85/* Hook for plugins to get control in ExecutorFinish() */
86typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);
88
89/* Hook for plugins to get control in ExecutorEnd() */
90typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);
92
93/* Hook for plugins to get control in ExecCheckPermissions() */
96 bool ereport_on_violation);
98
99
100/*
101 * prototypes from functions in execAmi.c
102 */
103typedef struct Path Path; /* avoid including pathnodes.h here */
104
105extern void ExecReScan(PlanState *node);
106extern void ExecMarkPos(PlanState *node);
107extern void ExecRestrPos(PlanState *node);
109extern bool ExecSupportsBackwardScan(Plan *node);
111
112/*
113 * prototypes from functions in execCurrent.c
114 */
115extern bool execCurrentOf(CurrentOfExpr *cexpr,
116 ExprContext *econtext,
119
120/*
121 * prototypes from functions in execGrouping.c
122 */
124 int numCols,
125 const AttrNumber *keyColIdx,
126 const Oid *eqOperators,
127 const Oid *collations,
128 PlanState *parent);
129extern void execTuplesHashPrepare(int numCols,
130 const Oid *eqOperators,
131 Oid **eqFuncOids,
136 int numCols,
137 AttrNumber *keyColIdx,
138 const Oid *eqfuncoids,
139 FmgrInfo *hashfunctions,
140 Oid *collations,
141 double nelements,
142 Size additionalsize,
144 MemoryContext tuplescxt,
145 MemoryContext tempcxt,
148 TupleTableSlot *slot,
149 bool *isnew, uint32 *hash);
151 TupleTableSlot *slot);
153 TupleTableSlot *slot,
154 bool *isnew, uint32 hash);
156 TupleTableSlot *slot,
159extern void ResetTupleHashTable(TupleHashTable hashtable);
160extern Size EstimateTupleHashTableSpace(double nentries,
162 Size additionalsize);
163
164#ifndef FRONTEND
165/*
166 * Return size of the hash bucket. Useful for estimating memory usage.
167 */
168static inline size_t
170{
171 return sizeof(TupleHashEntryData);
172}
173
174/*
175 * Return tuple from hash entry.
176 */
177static inline MinimalTuple
179{
180 return entry->firstTuple;
181}
182
183/*
184 * Get a pointer into the additional space allocated for this entry. The
185 * memory will be maxaligned and zeroed.
186 *
187 * The amount of space available is the additionalsize requested in the call
188 * to BuildTupleHashTable(). If additionalsize was specified as zero, return
189 * NULL.
190 */
191static inline void *
193{
194 if (hashtable->additionalsize > 0)
195 return (char *) entry->firstTuple - hashtable->additionalsize;
196 else
197 return NULL;
198}
199#endif
200
201/*
202 * prototypes from functions in execJunk.c
203 */
204extern JunkFilter *ExecInitJunkFilter(List *targetList,
205 TupleTableSlot *slot);
208 TupleTableSlot *slot);
210 const char *attrName);
212 const char *attrName);
214 TupleTableSlot *slot);
215
216/*
217 * ExecGetJunkAttribute
218 *
219 * Given a junk filter's input tuple (slot) and a junk attribute's number
220 * previously found by ExecFindJunkAttribute, extract & return the value and
221 * isNull flag of the attribute.
222 */
223#ifndef FRONTEND
224static inline Datum
226{
227 Assert(attno > 0);
228 return slot_getattr(slot, attno, isNull);
229}
230#endif
231
232/*
233 * prototypes from functions in execMain.c
234 */
235extern void ExecutorStart(QueryDesc *queryDesc, int eflags);
236extern void standard_ExecutorStart(QueryDesc *queryDesc, int eflags);
237extern void ExecutorRun(QueryDesc *queryDesc,
238 ScanDirection direction, uint64 count);
239extern void standard_ExecutorRun(QueryDesc *queryDesc,
240 ScanDirection direction, uint64 count);
241extern void ExecutorFinish(QueryDesc *queryDesc);
242extern void standard_ExecutorFinish(QueryDesc *queryDesc);
243extern void ExecutorEnd(QueryDesc *queryDesc);
244extern void standard_ExecutorEnd(QueryDesc *queryDesc);
245extern void ExecutorRewind(QueryDesc *queryDesc);
247 List *rteperminfos, bool ereport_on_violation);
249extern void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation,
250 OnConflictAction onConflictAction,
252extern void InitResultRelInfo(ResultRelInfo *resultRelInfo,
256 int instrument_options);
257extern ResultRelInfo *ExecGetTriggerResultRel(EState *estate, Oid relid,
259extern List *ExecGetAncestorResultRels(EState *estate, ResultRelInfo *resultRelInfo);
260extern void ExecConstraints(ResultRelInfo *resultRelInfo,
261 TupleTableSlot *slot, EState *estate);
263 TupleTableSlot *slot,
264 EState *estate,
266extern bool ExecPartitionCheck(ResultRelInfo *resultRelInfo,
267 TupleTableSlot *slot, EState *estate, bool emitError);
268extern void ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo,
269 TupleTableSlot *slot, EState *estate);
270extern void ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo,
271 TupleTableSlot *slot, EState *estate);
272extern char *ExecBuildSlotValueDescription(Oid reloid, TupleTableSlot *slot,
273 TupleDesc tupdesc,
275 int maxfieldlen);
277extern ExecRowMark *ExecFindRowMark(EState *estate, Index rti, bool missing_ok);
279extern TupleTableSlot *EvalPlanQual(EPQState *epqstate, Relation relation,
280 Index rti, TupleTableSlot *inputslot);
281extern void EvalPlanQualInit(EPQState *epqstate, EState *parentestate,
282 Plan *subplan, List *auxrowmarks,
283 int epqParam, List *resultRelations);
284extern void EvalPlanQualSetPlan(EPQState *epqstate,
285 Plan *subplan, List *auxrowmarks);
287 Relation relation, Index rti);
288
289#define EvalPlanQualSetSlot(epqstate, slot) ((epqstate)->origslot = (slot))
290extern bool EvalPlanQualFetchRowMark(EPQState *epqstate, Index rti, TupleTableSlot *slot);
291extern TupleTableSlot *EvalPlanQualNext(EPQState *epqstate);
292extern void EvalPlanQualBegin(EPQState *epqstate);
293extern void EvalPlanQualEnd(EPQState *epqstate);
294
295/*
296 * functions in execProcnode.c
297 */
298extern PlanState *ExecInitNode(Plan *node, EState *estate, int eflags);
300extern Node *MultiExecProcNode(PlanState *node);
301extern void ExecEndNode(PlanState *node);
302extern void ExecShutdownNode(PlanState *node);
303extern void ExecSetTupleBound(int64 tuples_needed, PlanState *child_node);
304
305
306/* ----------------------------------------------------------------
307 * ExecProcNode
308 *
309 * Execute the given node to return a(nother) tuple.
310 * ----------------------------------------------------------------
311 */
312#ifndef FRONTEND
313static inline TupleTableSlot *
315{
316 if (node->chgParam != NULL) /* something changed? */
317 ExecReScan(node); /* let ReScan handle this */
318
319 return node->ExecProcNode(node);
320}
321#endif
322
323/*
324 * prototypes from functions in execExpr.c
325 */
326extern ExprState *ExecInitExpr(Expr *node, PlanState *parent);
327extern ExprState *ExecInitExprWithParams(Expr *node, ParamListInfo ext_params);
328extern ExprState *ExecInitQual(List *qual, PlanState *parent);
329extern ExprState *ExecInitCheck(List *qual, PlanState *parent);
330extern List *ExecInitExprList(List *nodes, PlanState *parent);
332 bool doSort, bool doHash, bool nullcheck);
334 const TupleTableSlotOps *ops,
335 FmgrInfo *hashfunctions,
336 Oid *collations,
337 int numCols,
338 AttrNumber *keyColIdx,
339 PlanState *parent,
340 uint32 init_value);
342 const TupleTableSlotOps *ops,
343 const Oid *hashfunc_oids,
344 const List *collations,
345 const List *hash_exprs,
346 const bool *opstrict, PlanState *parent,
347 uint32 init_value, bool keep_nulls);
350 int numCols,
351 const AttrNumber *keyColIdx,
352 const Oid *eqfunctions,
353 const Oid *collations,
354 PlanState *parent);
356 const TupleTableSlotOps *lops,
357 const TupleTableSlotOps *rops,
358 const Oid *eqfunctions,
359 const Oid *collations,
360 const List *param_exprs,
361 PlanState *parent);
363 ExprContext *econtext,
364 TupleTableSlot *slot,
365 PlanState *parent,
368 bool evalTargetList,
371 ExprContext *econtext,
372 TupleTableSlot *slot,
373 PlanState *parent);
374extern ExprState *ExecPrepareExpr(Expr *node, EState *estate);
375extern ExprState *ExecPrepareQual(List *qual, EState *estate);
376extern ExprState *ExecPrepareCheck(List *qual, EState *estate);
377extern List *ExecPrepareExprList(List *nodes, EState *estate);
378
379/*
380 * ExecEvalExpr
381 *
382 * Evaluate expression identified by "state" in the execution context
383 * given by "econtext". *isNull is set to the is-null flag for the result,
384 * and the Datum value is the function result.
385 *
386 * The caller should already have switched into the temporary memory
387 * context econtext->ecxt_per_tuple_memory. The convenience entry point
388 * ExecEvalExprSwitchContext() is provided for callers who don't prefer to
389 * do the switch in an outer loop.
390 */
391#ifndef FRONTEND
392static inline Datum
394 ExprContext *econtext,
395 bool *isNull)
396{
397 return state->evalfunc(state, econtext, isNull);
398}
399#endif
400
401/*
402 * ExecEvalExprNoReturn
403 *
404 * Like ExecEvalExpr(), but for cases where no return value is expected,
405 * because the side-effects of expression evaluation are what's desired. This
406 * is e.g. used for projection and aggregate transition computation.
407 *
408 * Evaluate expression identified by "state" in the execution context
409 * given by "econtext".
410 *
411 * The caller should already have switched into the temporary memory context
412 * econtext->ecxt_per_tuple_memory. The convenience entry point
413 * ExecEvalExprNoReturnSwitchContext() is provided for callers who don't
414 * prefer to do the switch in an outer loop.
415 */
416#ifndef FRONTEND
417static inline void
419 ExprContext *econtext)
420{
422
423 retDatum = state->evalfunc(state, econtext, NULL);
424
425 Assert(retDatum == (Datum) 0);
426}
427#endif
428
429/*
430 * ExecEvalExprSwitchContext
431 *
432 * Same as ExecEvalExpr, but get into the right allocation context explicitly.
433 */
434#ifndef FRONTEND
435static inline Datum
437 ExprContext *econtext,
438 bool *isNull)
439{
442
444 retDatum = state->evalfunc(state, econtext, isNull);
446 return retDatum;
447}
448#endif
449
450/*
451 * ExecEvalExprNoReturnSwitchContext
452 *
453 * Same as ExecEvalExprNoReturn, but get into the right allocation context
454 * explicitly.
455 */
456#ifndef FRONTEND
457static inline void
467#endif
468
469/*
470 * ExecProject
471 *
472 * Projects a tuple based on projection info and stores it in the slot passed
473 * to ExecBuildProjectionInfo().
474 *
475 * Note: the result is always a virtual tuple; therefore it may reference
476 * the contents of the exprContext's scan tuples and/or temporary results
477 * constructed in the exprContext. If the caller wishes the result to be
478 * valid longer than that data will be valid, he must call ExecMaterializeSlot
479 * on the result slot.
480 */
481#ifndef FRONTEND
482static inline TupleTableSlot *
484{
485 ExprContext *econtext = projInfo->pi_exprContext;
486 ExprState *state = &projInfo->pi_state;
487 TupleTableSlot *slot = state->resultslot;
488
489 /*
490 * Clear any former contents of the result slot. This makes it safe for
491 * us to use the slot's Datum/isnull arrays as workspace.
492 */
493 ExecClearTuple(slot);
494
495 /* Run the expression */
497
498 /*
499 * Successfully formed a result row. Mark the result slot as containing a
500 * valid virtual tuple (inlined version of ExecStoreVirtualTuple()).
501 */
502 slot->tts_flags &= ~TTS_FLAG_EMPTY;
503 slot->tts_nvalid = slot->tts_tupleDescriptor->natts;
504
505 return slot;
506}
507#endif
508
509/*
510 * ExecQual - evaluate a qual prepared with ExecInitQual (possibly via
511 * ExecPrepareQual). Returns true if qual is satisfied, else false.
512 *
513 * Note: ExecQual used to have a third argument "resultForNull". The
514 * behavior of this function now corresponds to resultForNull == false.
515 * If you want the resultForNull == true behavior, see ExecCheck.
516 */
517#ifndef FRONTEND
518static inline bool
520{
521 Datum ret;
522 bool isnull;
523
524 /* short-circuit (here and in ExecInitQual) for empty restriction list */
525 if (state == NULL)
526 return true;
527
528 /* verify that expression was compiled using ExecInitQual */
529 Assert(state->flags & EEO_FLAG_IS_QUAL);
530
531 ret = ExecEvalExprSwitchContext(state, econtext, &isnull);
532
533 /* EEOP_QUAL should never return NULL */
534 Assert(!isnull);
535
536 return DatumGetBool(ret);
537}
538#endif
539
540/*
541 * ExecQualAndReset() - evaluate qual with ExecQual() and reset expression
542 * context.
543 */
544#ifndef FRONTEND
545static inline bool
547{
548 bool ret = ExecQual(state, econtext);
549
550 /* inline ResetExprContext, to avoid ordering issue in this file */
552 return ret;
553}
554#endif
555
556extern bool ExecCheck(ExprState *state, ExprContext *econtext);
557
558/*
559 * prototypes from functions in execSRF.c
560 */
562 ExprContext *econtext, PlanState *parent);
564 ExprContext *econtext,
566 TupleDesc expectedDesc,
567 bool randomAccess);
569 ExprContext *econtext, PlanState *parent);
571 ExprContext *econtext,
573 bool *isNull,
574 ExprDoneCond *isDone);
575
576/*
577 * prototypes from functions in execScan.c
578 */
579typedef TupleTableSlot *(*ExecScanAccessMtd) (ScanState *node);
581
584extern void ExecAssignScanProjectionInfo(ScanState *node);
585extern void ExecAssignScanProjectionInfoWithVarno(ScanState *node, int varno);
586extern void ExecScanReScan(ScanState *node);
587
588/*
589 * prototypes from functions in execTuples.c
590 */
591extern void ExecInitResultTypeTL(PlanState *planstate);
592extern void ExecInitResultSlot(PlanState *planstate,
593 const TupleTableSlotOps *tts_ops);
594extern void ExecInitResultTupleSlotTL(PlanState *planstate,
595 const TupleTableSlotOps *tts_ops);
596extern void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate,
597 TupleDesc tupledesc,
598 const TupleTableSlotOps *tts_ops);
600 TupleDesc tupledesc,
601 const TupleTableSlotOps *tts_ops);
603 const TupleTableSlotOps *tts_ops);
604extern TupleDesc ExecTypeFromTL(List *targetList);
605extern TupleDesc ExecCleanTypeFromTL(List *targetList);
609
615
617 TupleDesc tupdesc,
618 const TupleTableSlotOps *tts_ops);
619extern void do_tup_output(TupOutputState *tstate, const Datum *values, const bool *isnull);
620extern void do_text_output_multiline(TupOutputState *tstate, const char *txt);
622
623/*
624 * Write a single line of text given as a C string.
625 *
626 * Should only be used with a single-TEXT-attribute tupdesc.
627 */
628#define do_text_output_oneline(tstate, str_to_emit) \
629 do { \
630 Datum values_[1]; \
631 bool isnull_[1]; \
632 values_[0] = PointerGetDatum(cstring_to_text(str_to_emit)); \
633 isnull_[0] = false; \
634 do_tup_output(tstate, values_, isnull_); \
635 pfree(DatumGetPointer(values_[0])); \
636 } while (0)
637
638
639/*
640 * prototypes from functions in execUtils.c
641 */
642extern EState *CreateExecutorState(void);
643extern void FreeExecutorState(EState *estate);
644extern ExprContext *CreateExprContext(EState *estate);
647extern void FreeExprContext(ExprContext *econtext, bool isCommit);
648extern void ReScanExprContext(ExprContext *econtext);
649
650#define ResetExprContext(econtext) \
651 MemoryContextReset((econtext)->ecxt_per_tuple_memory)
652
654
655/* Get an EState's per-output-tuple exprcontext, making it if first use */
656#define GetPerTupleExprContext(estate) \
657 ((estate)->es_per_tuple_exprcontext ? \
658 (estate)->es_per_tuple_exprcontext : \
659 MakePerTupleExprContext(estate))
660
661#define GetPerTupleMemoryContext(estate) \
662 (GetPerTupleExprContext(estate)->ecxt_per_tuple_memory)
663
664/* Reset an EState's per-output-tuple exprcontext, if one's been created */
665#define ResetPerTupleExprContext(estate) \
666 do { \
667 if ((estate)->es_per_tuple_exprcontext) \
668 ResetExprContext((estate)->es_per_tuple_exprcontext); \
669 } while (0)
670
671extern void ExecAssignExprContext(EState *estate, PlanState *planstate);
672extern TupleDesc ExecGetResultType(PlanState *planstate);
673extern const TupleTableSlotOps *ExecGetResultSlotOps(PlanState *planstate,
674 bool *isfixed);
676 int nplans);
678extern void ExecAssignProjectionInfo(PlanState *planstate,
681 TupleDesc inputDesc, int varno);
682extern void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc);
683extern void ExecCreateScanSlotFromOuterPlan(EState *estate,
685 const TupleTableSlotOps *tts_ops);
686
687extern bool ExecRelationIsTargetRelation(EState *estate, Index scanrelid);
688
689extern Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags);
690
691extern void ExecInitRangeTable(EState *estate, List *rangeTable, List *permInfos,
693extern void ExecCloseRangeTableRelations(EState *estate);
694extern void ExecCloseResultRelations(EState *estate);
695
696static inline RangeTblEntry *
698{
699 return (RangeTblEntry *) list_nth(estate->es_range_table, rti - 1);
700}
701
703 bool isResultRel);
704extern void ExecInitResultRelation(EState *estate, ResultRelInfo *resultRelInfo,
705 Index rti);
706
707extern int executor_errposition(EState *estate, int location);
708
709extern void RegisterExprContextCallback(ExprContext *econtext,
711 Datum arg);
712extern void UnregisterExprContextCallback(ExprContext *econtext,
714 Datum arg);
715
716extern Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname,
717 bool *isNull);
719 bool *isNull);
720
721extern int ExecTargetListLength(List *targetlist);
722extern int ExecCleanTargetListLength(List *targetlist);
723
729extern TupleConversionMap *ExecGetRootToChildMap(ResultRelInfo *resultRelInfo, EState *estate);
730
736
737/*
738 * prototypes from functions in execIndexing.c
739 */
740extern void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative);
741extern void ExecCloseIndices(ResultRelInfo *resultRelInfo);
742extern List *ExecInsertIndexTuples(ResultRelInfo *resultRelInfo,
743 TupleTableSlot *slot, EState *estate,
744 bool update,
745 bool noDupErr,
746 bool *specConflict, List *arbiterIndexes,
747 bool onlySummarizing);
748extern bool ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo,
749 TupleTableSlot *slot,
752 List *arbiterIndexes);
754 IndexInfo *indexInfo,
756 const Datum *values, const bool *isnull,
757 EState *estate, bool newIndex);
758
759/*
760 * prototypes from functions in execReplication.c
761 */
763 LockTupleMode lockmode,
766extern bool RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode,
780extern void ExecSimpleRelationInsert(ResultRelInfo *resultRelInfo,
781 EState *estate, TupleTableSlot *slot);
782extern void ExecSimpleRelationUpdate(ResultRelInfo *resultRelInfo,
783 EState *estate, EPQState *epqstate,
785extern void ExecSimpleRelationDelete(ResultRelInfo *resultRelInfo,
786 EState *estate, EPQState *epqstate,
788extern void CheckCmdReplicaIdentity(Relation rel, CmdType cmd);
789
791 const char *nspname, const char *relname);
792
793/*
794 * prototypes from functions in nodeModifyTable.c
795 */
797 TupleTableSlot *planSlot,
801 bool missing_ok,
802 bool update_cache);
803
804#endif /* EXECUTOR_H */
int16 AttrNumber
Definition attnum.h:21
static Datum values[MAXATTR]
Definition bootstrap.c:155
#define PGDLLIMPORT
Definition c.h:1334
#define PG_USED_FOR_ASSERTS_ONLY
Definition c.h:223
#define Assert(condition)
Definition c.h:873
int64_t int64
Definition c.h:543
uint64_t uint64
Definition c.h:547
uint32_t uint32
Definition c.h:546
unsigned int Index
Definition c.h:628
uint32 TransactionId
Definition c.h:666
size_t Size
Definition c.h:619
int64 TimestampTz
Definition timestamp.h:39
ExprDoneCond
Definition execnodes.h:328
#define EEO_FLAG_IS_QUAL
Definition execnodes.h:76
TupleTableSlot *(* ExecProcNodeMtd)(PlanState *pstate)
Definition execnodes.h:1152
static MinimalTuple TupleHashEntryGetTuple(TupleHashEntry entry)
Definition executor.h:178
void CheckSubscriptionRelkind(char localrelkind, char remoterelkind, const char *nspname, const char *relname)
TupleDesc ExecGetResultType(PlanState *planstate)
Definition execUtils.c:495
Relation ExecGetRangeTableRelation(EState *estate, Index rti, bool isResultRel)
Definition execUtils.c:825
bool RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode, TupleTableSlot *searchslot, TupleTableSlot *outslot)
bool RelationFindReplTupleByIndex(Relation rel, Oid idxoid, LockTupleMode lockmode, TupleTableSlot *searchslot, TupleTableSlot *outslot)
LockTupleMode ExecUpdateLockMode(EState *estate, ResultRelInfo *relinfo)
Definition execMain.c:2534
ResultRelInfo * ExecLookupResultRelByOid(ModifyTableState *node, Oid resultoid, bool missing_ok, bool update_cache)
ExprState * execTuplesMatchPrepare(TupleDesc desc, int numCols, const AttrNumber *keyColIdx, const Oid *eqOperators, const Oid *collations, PlanState *parent)
ExecRowMark * ExecFindRowMark(EState *estate, Index rti, bool missing_ok)
Definition execMain.c:2560
TupleConversionMap * ExecGetRootToChildMap(ResultRelInfo *resultRelInfo, EState *estate)
Definition execUtils.c:1326
ExecAuxRowMark * ExecBuildAuxRowMark(ExecRowMark *erm, List *targetlist)
Definition execMain.c:2583
ResultRelInfo * ExecGetTriggerResultRel(EState *estate, Oid relid, ResultRelInfo *rootRelInfo)
Definition execMain.c:1347
void ExecAssignScanProjectionInfoWithVarno(ScanState *node, int varno)
Definition execScan.c:94
PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook
Definition execMain.c:71
TupleTableSlot * EvalPlanQualSlot(EPQState *epqstate, Relation relation, Index rti)
Definition execMain.c:2780
Bitmapset * ExecGetExtraUpdatedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1403
void ExecSimpleRelationDelete(ResultRelInfo *resultRelInfo, EState *estate, EPQState *epqstate, TupleTableSlot *searchslot)
void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation, OnConflictAction onConflictAction, List *mergeActions)
Definition execMain.c:1054
void EvalPlanQualBegin(EPQState *epqstate)
Definition execMain.c:2935
Bitmapset * ExecGetInsertedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1361
TupleTableSlot * ExecGetTriggerNewSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1226
PGDLLIMPORT ExecutorStart_hook_type ExecutorStart_hook
Definition execMain.c:68
char * ExecBuildSlotValueDescription(Oid reloid, TupleTableSlot *slot, TupleDesc tupdesc, Bitmapset *modifiedCols, int maxfieldlen)
Definition execMain.c:2395
ExprState * ExecBuildHash32FromAttrs(TupleDesc desc, const TupleTableSlotOps *ops, FmgrInfo *hashfunctions, Oid *collations, int numCols, AttrNumber *keyColIdx, PlanState *parent, uint32 init_value)
Definition execExpr.c:4135
void ReScanExprContext(ExprContext *econtext)
Definition execUtils.c:443
static TupleTableSlot * ExecProject(ProjectionInfo *projInfo)
Definition executor.h:483
bool ExecPartitionCheck(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, bool emitError)
Definition execMain.c:1860
static void * TupleHashEntryGetAdditional(TupleHashTable hashtable, TupleHashEntry entry)
Definition executor.h:192
ExprState * ExecInitExpr(Expr *node, PlanState *parent)
Definition execExpr.c:143
JunkFilter * ExecInitJunkFilterConversion(List *targetList, TupleDesc cleanTupType, TupleTableSlot *slot)
Definition execJunk.c:137
void do_tup_output(TupOutputState *tstate, const Datum *values, const bool *isnull)
ExprState * ExecPrepareExpr(Expr *node, EState *estate)
Definition execExpr.c:765
bool ExecCheck(ExprState *state, ExprContext *econtext)
Definition execExpr.c:872
ExprContext * CreateExprContext(EState *estate)
Definition execUtils.c:307
ExprState * ExecInitCheck(List *qual, PlanState *parent)
Definition execExpr.c:315
SetExprState * ExecInitFunctionResultSet(Expr *expr, ExprContext *econtext, PlanState *parent)
Definition execSRF.c:444
void execTuplesHashPrepare(int numCols, const Oid *eqOperators, Oid **eqFuncOids, FmgrInfo **hashFunctions)
void(* ExecutorFinish_hook_type)(QueryDesc *queryDesc)
Definition executor.h:86
TupleConversionMap * ExecGetChildToRootMap(ResultRelInfo *resultRelInfo)
Definition execUtils.c:1300
ExprContext * CreateStandaloneExprContext(void)
Definition execUtils.c:357
void ExecutorEnd(QueryDesc *queryDesc)
Definition execMain.c:466
void EvalPlanQualInit(EPQState *epqstate, EState *parentestate, Plan *subplan, List *auxrowmarks, int epqParam, List *resultRelations)
Definition execMain.c:2722
TupleTableSlot * ExecGetTriggerOldSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1204
TupleDesc ExecCleanTypeFromTL(List *targetList)
void ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:2232
int executor_errposition(EState *estate, int location)
Definition execUtils.c:936
void ExecInitResultSlot(PlanState *planstate, const TupleTableSlotOps *tts_ops)
ProjectionInfo * ExecBuildProjectionInfo(List *targetList, ExprContext *econtext, TupleTableSlot *slot, PlanState *parent, TupleDesc inputDesc)
Definition execExpr.c:370
TupleHashTable BuildTupleHashTable(PlanState *parent, TupleDesc inputDesc, const TupleTableSlotOps *inputOps, int numCols, AttrNumber *keyColIdx, const Oid *eqfuncoids, FmgrInfo *hashfunctions, Oid *collations, double nelements, Size additionalsize, MemoryContext metacxt, MemoryContext tuplescxt, MemoryContext tempcxt, bool use_variable_hash_iv)
void ExecTypeSetColNames(TupleDesc typeInfo, List *namesList)
TupleHashEntry LookupTupleHashEntryHash(TupleHashTable hashtable, TupleTableSlot *slot, bool *isnew, uint32 hash)
static RangeTblEntry * exec_rt_fetch(Index rti, EState *estate)
Definition executor.h:697
Tuplestorestate * ExecMakeTableFunctionResult(SetExprState *setexpr, ExprContext *econtext, MemoryContext argContext, TupleDesc expectedDesc, bool randomAccess)
Definition execSRF.c:101
Datum GetAttributeByNum(HeapTupleHeader tuple, AttrNumber attrno, bool *isNull)
Definition execUtils.c:1124
void FreeExprContext(ExprContext *econtext, bool isCommit)
Definition execUtils.c:416
void ExecInitRangeTable(EState *estate, List *rangeTable, List *permInfos, Bitmapset *unpruned_relids)
Definition execUtils.c:773
TupleTableSlot * ExecFilterJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
Definition execJunk.c:247
Node * MultiExecProcNode(PlanState *node)
AttrNumber ExecFindJunkAttributeInTlist(List *targetlist, const char *attrName)
Definition execJunk.c:222
Bitmapset * ExecGetUpdatedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1382
TupleTableSlot * ExecGetUpdateNewTuple(ResultRelInfo *relinfo, TupleTableSlot *planSlot, TupleTableSlot *oldSlot)
const TupleTableSlotOps * ExecGetCommonSlotOps(PlanState **planstates, int nplans)
Definition execUtils.c:536
void ExecInitResultRelation(EState *estate, ResultRelInfo *resultRelInfo, Index rti)
Definition execUtils.c:880
void end_tup_output(TupOutputState *tstate)
void InitResultRelInfo(ResultRelInfo *resultRelInfo, Relation resultRelationDesc, Index resultRelationIndex, ResultRelInfo *partition_root_rri, int instrument_options)
Definition execMain.c:1247
void ExecMarkPos(PlanState *node)
Definition execAmi.c:327
void ExecSetTupleBound(int64 tuples_needed, PlanState *child_node)
TupleTableSlot * ExecScan(ScanState *node, ExecScanAccessMtd accessMtd, ExecScanRecheckMtd recheckMtd)
Definition execScan.c:47
Datum ExecMakeFunctionResultSet(SetExprState *fcache, ExprContext *econtext, MemoryContext argContext, bool *isNull, ExprDoneCond *isDone)
Definition execSRF.c:497
void standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
Definition execMain.c:141
void ExecCreateScanSlotFromOuterPlan(EState *estate, ScanState *scanstate, const TupleTableSlotOps *tts_ops)
Definition execUtils.c:704
void ExecutorFinish(QueryDesc *queryDesc)
Definition execMain.c:406
bool ExecSupportsMarkRestore(Path *pathnode)
Definition execAmi.c:418
void ExecEndNode(PlanState *node)
JunkFilter * ExecInitJunkFilter(List *targetList, TupleTableSlot *slot)
Definition execJunk.c:60
void ExecSimpleRelationUpdate(ResultRelInfo *resultRelInfo, EState *estate, EPQState *epqstate, TupleTableSlot *searchslot, TupleTableSlot *slot)
void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate, TupleDesc tupledesc, const TupleTableSlotOps *tts_ops)
TupleHashEntry LookupTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot, bool *isnew, uint32 *hash)
void EvalPlanQualEnd(EPQState *epqstate)
Definition execMain.c:3183
void ExecInitResultTypeTL(PlanState *planstate)
void EvalPlanQualSetPlan(EPQState *epqstate, Plan *subplan, List *auxrowmarks)
Definition execMain.c:2763
void CheckCmdReplicaIdentity(Relation rel, CmdType cmd)
PlanState * ExecInitNode(Plan *node, EState *estate, int eflags)
ExprState * ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseData *phase, bool doSort, bool doHash, bool nullcheck)
void(* ExecutorRun_hook_type)(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
Definition executor.h:80
void ExecSimpleRelationInsert(ResultRelInfo *resultRelInfo, EState *estate, TupleTableSlot *slot)
AttrNumber ExecFindJunkAttribute(JunkFilter *junkfilter, const char *attrName)
Definition execJunk.c:210
PGDLLIMPORT ExecutorFinish_hook_type ExecutorFinish_hook
Definition execMain.c:70
bool RelationFindDeletedTupleInfoByIndex(Relation rel, Oid idxoid, TupleTableSlot *searchslot, TransactionId oldestxmin, TransactionId *delete_xid, ReplOriginId *delete_origin, TimestampTz *delete_time)
void ExecutorRewind(QueryDesc *queryDesc)
Definition execMain.c:536
void do_text_output_multiline(TupOutputState *tstate, const char *txt)
void ExecShutdownNode(PlanState *node)
void ExecAssignExprContext(EState *estate, PlanState *planstate)
Definition execUtils.c:485
void ExecutorStart(QueryDesc *queryDesc, int eflags)
Definition execMain.c:122
ExprState * ExecPrepareQual(List *qual, EState *estate)
Definition execExpr.c:793
AttrNumber ExecRelGenVirtualNotNull(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, List *notnull_virtual_attrs)
Definition execMain.c:2098
SetExprState * ExecInitTableFunctionResult(Expr *expr, ExprContext *econtext, PlanState *parent)
Definition execSRF.c:56
ExprState * ExecInitQual(List *qual, PlanState *parent)
Definition execExpr.c:229
bool RelationFindDeletedTupleInfoSeq(Relation rel, TupleTableSlot *searchslot, TransactionId oldestxmin, TransactionId *delete_xid, ReplOriginId *delete_origin, TimestampTz *delete_time)
TupleTableSlot * EvalPlanQual(EPQState *epqstate, Relation relation, Index rti, TupleTableSlot *inputslot)
Definition execMain.c:2653
void ExecAssignProjectionInfo(PlanState *planstate, TupleDesc inputDesc)
Definition execUtils.c:583
void(* ExecutorStart_hook_type)(QueryDesc *queryDesc, int eflags)
Definition executor.h:76
static bool ExecQual(ExprState *state, ExprContext *econtext)
Definition executor.h:519
ExprContext * MakePerTupleExprContext(EState *estate)
Definition execUtils.c:458
bool ExecCheckOneRelPerms(RTEPermissionInfo *perminfo)
Definition execMain.c:646
void UnregisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, Datum arg)
Definition execUtils.c:989
void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc)
Definition execUtils.c:692
bool(* ExecScanRecheckMtd)(ScanState *node, TupleTableSlot *slot)
Definition executor.h:580
const TupleTableSlotOps * ExecGetCommonChildSlotOps(PlanState *ps)
Definition execUtils.c:563
TupleTableSlot * ExecInitExtraTupleSlot(EState *estate, TupleDesc tupledesc, const TupleTableSlotOps *tts_ops)
bool(* ExecutorCheckPerms_hook_type)(List *rangeTable, List *rtePermInfos, bool ereport_on_violation)
Definition executor.h:94
uint32 TupleHashTableHash(TupleHashTable hashtable, TupleTableSlot *slot)
bool EvalPlanQualFetchRowMark(EPQState *epqstate, Index rti, TupleTableSlot *slot)
Definition execMain.c:2808
List * ExecInitExprList(List *nodes, PlanState *parent)
Definition execExpr.c:335
void ExecConditionalAssignProjectionInfo(PlanState *planstate, TupleDesc inputDesc, int varno)
Definition execUtils.c:603
void(* ExecutorEnd_hook_type)(QueryDesc *queryDesc)
Definition executor.h:90
void ExecInitResultTupleSlotTL(PlanState *planstate, const TupleTableSlotOps *tts_ops)
void ExecCloseIndices(ResultRelInfo *resultRelInfo)
void RegisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, Datum arg)
Definition execUtils.c:963
static bool ExecQualAndReset(ExprState *state, ExprContext *econtext)
Definition executor.h:546
ExprState * ExecInitExprWithParams(Expr *node, ParamListInfo ext_params)
Definition execExpr.c:180
void ExecAssignScanProjectionInfo(ScanState *node)
Definition execScan.c:81
int ExecTargetListLength(List *targetlist)
Definition execUtils.c:1175
ProjectionInfo * ExecBuildUpdateProjection(List *targetList, bool evalTargetList, List *targetColnos, TupleDesc relDesc, ExprContext *econtext, TupleTableSlot *slot, PlanState *parent)
Definition execExpr.c:547
void FreeExecutorState(EState *estate)
Definition execUtils.c:192
static size_t TupleHashEntrySize(void)
Definition executor.h:169
bool ExecRelationIsTargetRelation(EState *estate, Index scanrelid)
Definition execUtils.c:729
ExprState * ExecBuildGroupingEqual(TupleDesc ldesc, TupleDesc rdesc, const TupleTableSlotOps *lops, const TupleTableSlotOps *rops, int numCols, const AttrNumber *keyColIdx, const Oid *eqfunctions, const Oid *collations, PlanState *parent)
Definition execExpr.c:4459
TupleHashEntry FindTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot, ExprState *eqcomp, ExprState *hashexpr)
void ExecCloseResultRelations(EState *estate)
Definition execMain.c:1579
Size EstimateTupleHashTableSpace(double nentries, Size tupleWidth, Size additionalsize)
static TupleTableSlot * ExecProcNode(PlanState *node)
Definition executor.h:314
TupleTableSlot * ExecGetAllNullSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1273
bool ExecMaterializesOutput(NodeTag plantype)
Definition execAmi.c:635
void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative)
int ExecCleanTargetListLength(List *targetlist)
Definition execUtils.c:1185
ExprContext * CreateWorkExprContext(EState *estate)
Definition execUtils.c:322
TupOutputState * begin_tup_output_tupdesc(DestReceiver *dest, TupleDesc tupdesc, const TupleTableSlotOps *tts_ops)
TupleTableSlot *(* ExecScanAccessMtd)(ScanState *node)
Definition executor.h:579
void UpdateChangedParamSet(PlanState *node, Bitmapset *newchg)
Definition execUtils.c:910
void ExecScanReScan(ScanState *node)
Definition execScan.c:108
bool ExecSupportsBackwardScan(Plan *node)
Definition execAmi.c:511
const TupleTableSlotOps * ExecGetResultSlotOps(PlanState *planstate, bool *isfixed)
Definition execUtils.c:504
Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname, bool *isNull)
Definition execUtils.c:1061
PGDLLIMPORT ExecutorCheckPerms_hook_type ExecutorCheckPerms_hook
Definition execMain.c:74
Bitmapset * ExecGetAllUpdatedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1418
void ExecReScan(PlanState *node)
Definition execAmi.c:77
static void ExecEvalExprNoReturn(ExprState *state, ExprContext *econtext)
Definition executor.h:418
PGDLLIMPORT ExecutorRun_hook_type ExecutorRun_hook
Definition execMain.c:69
TupleDesc ExecTypeFromExprList(List *exprList)
List * ExecInsertIndexTuples(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, bool update, bool noDupErr, bool *specConflict, List *arbiterIndexes, bool onlySummarizing)
TupleDesc ExecTypeFromTL(List *targetList)
void standard_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
Definition execMain.c:307
static Datum ExecEvalExpr(ExprState *state, ExprContext *econtext, bool *isNull)
Definition executor.h:393
bool execCurrentOf(CurrentOfExpr *cexpr, ExprContext *econtext, Oid table_oid, ItemPointer current_tid)
Definition execCurrent.c:44
void ResetTupleHashTable(TupleHashTable hashtable)
List * ExecPrepareExprList(List *nodes, EState *estate)
Definition execExpr.c:839
void standard_ExecutorEnd(QueryDesc *queryDesc)
Definition execMain.c:475
void ExecRestrPos(PlanState *node)
Definition execAmi.c:376
static void ExecEvalExprNoReturnSwitchContext(ExprState *state, ExprContext *econtext)
Definition executor.h:458
void ExecCloseRangeTableRelations(EState *estate)
Definition execMain.c:1639
static Datum ExecEvalExprSwitchContext(ExprState *state, ExprContext *econtext, bool *isNull)
Definition executor.h:436
void ExecSetExecProcNode(PlanState *node, ExecProcNodeMtd function)
void ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:1913
void check_exclusion_constraint(Relation heap, Relation index, IndexInfo *indexInfo, const ItemPointerData *tupleid, const Datum *values, const bool *isnull, EState *estate, bool newIndex)
ExprState * ExecBuildParamSetEqual(TupleDesc desc, const TupleTableSlotOps *lops, const TupleTableSlotOps *rops, const Oid *eqfunctions, const Oid *collations, const List *param_exprs, PlanState *parent)
Definition execExpr.c:4618
void ExecConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:1984
TupleTableSlot * ExecInitNullTupleSlot(EState *estate, TupleDesc tupType, const TupleTableSlotOps *tts_ops)
TupleTableSlot * ExecGetReturningSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1248
Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags)
Definition execUtils.c:742
bool ExecCheckPermissions(List *rangeTable, List *rteperminfos, bool ereport_on_violation)
Definition execMain.c:582
static Datum ExecGetJunkAttribute(TupleTableSlot *slot, AttrNumber attno, bool *isNull)
Definition executor.h:225
void ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
Definition execMain.c:297
Oid ExecGetResultRelCheckAsUser(ResultRelInfo *relInfo, EState *estate)
Definition execUtils.c:1489
ExprState * ExecBuildHash32Expr(TupleDesc desc, const TupleTableSlotOps *ops, const Oid *hashfunc_oids, const List *collations, const List *hash_exprs, const bool *opstrict, PlanState *parent, uint32 init_value, bool keep_nulls)
Definition execExpr.c:4294
EState * CreateExecutorState(void)
Definition execUtils.c:88
ExprState * ExecPrepareCheck(List *qual, EState *estate)
Definition execExpr.c:816
List * ExecGetAncestorResultRels(EState *estate, ResultRelInfo *resultRelInfo)
Definition execMain.c:1434
TupleTableSlot * EvalPlanQualNext(EPQState *epqstate)
Definition execMain.c:2919
bool ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, ItemPointer conflictTid, const ItemPointerData *tupleid, List *arbiterIndexes)
void standard_ExecutorFinish(QueryDesc *queryDesc)
Definition execMain.c:415
void(* ExprContextCallbackFunction)(Datum arg)
Definition fmgr.h:26
struct parser_state ps
LockTupleMode
Definition lockoptions.h:50
void MemoryContextReset(MemoryContext context)
Definition mcxt.c:403
OnConflictAction
Definition nodes.h:427
CmdType
Definition nodes.h:273
NodeTag
Definition nodes.h:27
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
Definition palloc.h:124
WCOKind
NameData attname
on_exit_nicely_callback function
void * arg
NameData relname
Definition pg_class.h:38
static void * list_nth(const List *list, int n)
Definition pg_list.h:299
static bool DatumGetBool(Datum X)
Definition postgres.h:100
uint64_t Datum
Definition postgres.h:70
unsigned int Oid
static int fb(int x)
static unsigned hash(unsigned *uv, int n)
Definition rege_dfa.c:715
ScanDirection
Definition sdir.h:25
List * es_range_table
Definition execnodes.h:664
MemoryContext ecxt_per_tuple_memory
Definition execnodes.h:283
Definition pg_list.h:54
Definition nodes.h:135
Bitmapset * chgParam
Definition execnodes.h:1199
ExecProcNodeMtd ExecProcNode
Definition execnodes.h:1173
TupleTableSlot * slot
Definition executor.h:612
DestReceiver * dest
Definition executor.h:613
MinimalTuple firstTuple
Definition execnodes.h:857
TupleDesc tts_tupleDescriptor
Definition tuptable.h:122
AttrNumber tts_nvalid
Definition tuptable.h:119
uint16 tts_flags
Definition tuptable.h:117
Definition type.h:96
static Datum slot_getattr(TupleTableSlot *slot, int attnum, bool *isnull)
Definition tuptable.h:398
static TupleTableSlot * ExecClearTuple(TupleTableSlot *slot)
Definition tuptable.h:457
uint16 ReplOriginId
Definition xlogdefs.h:69