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 "access/xlogdefs.h"
18#include "datatype/timestamp.h"
19#include "executor/execdesc.h"
20#include "fmgr.h"
21#include "nodes/lockoptions.h"
22#include "nodes/parsenodes.h"
23#include "utils/memutils.h"
24
25
26/*
27 * The "eflags" argument to ExecutorStart and the various ExecInitNode
28 * routines is a bitwise OR of the following flag bits, which tell the
29 * called plan node what to expect. Note that the flags will get modified
30 * as they are passed down the plan tree, since an upper node may require
31 * functionality in its subnode not demanded of the plan as a whole
32 * (example: MergeJoin requires mark/restore capability in its inner input),
33 * or an upper node may shield its input from some functionality requirement
34 * (example: Materialize shields its input from needing to do backward scan).
35 *
36 * EXPLAIN_ONLY indicates that the plan tree is being initialized just so
37 * EXPLAIN can print it out; it will not be run. Hence, no side-effects
38 * of startup should occur. However, error checks (such as permission checks)
39 * should be performed.
40 *
41 * EXPLAIN_GENERIC can only be used together with EXPLAIN_ONLY. It indicates
42 * that a generic plan is being shown using EXPLAIN (GENERIC_PLAN), which
43 * means that missing parameter values must be tolerated. Currently, the only
44 * effect is to suppress execution-time partition pruning.
45 *
46 * REWIND indicates that the plan node should try to efficiently support
47 * rescans without parameter changes. (Nodes must support ExecReScan calls
48 * in any case, but if this flag was not given, they are at liberty to do it
49 * through complete recalculation. Note that a parameter change forces a
50 * full recalculation in any case.)
51 *
52 * BACKWARD indicates that the plan node must respect the es_direction flag.
53 * When this is not passed, the plan node will only be run forwards.
54 *
55 * MARK indicates that the plan node must support Mark/Restore calls.
56 * When this is not passed, no Mark/Restore will occur.
57 *
58 * SKIP_TRIGGERS tells ExecutorStart/ExecutorFinish to skip calling
59 * AfterTriggerBeginQuery/AfterTriggerEndQuery. This does not necessarily
60 * mean that the plan can't queue any AFTER triggers; just that the caller
61 * is responsible for there being a trigger context for them to be queued in.
62 *
63 * WITH_NO_DATA indicates that we are performing REFRESH MATERIALIZED VIEW
64 * ... WITH NO DATA. Currently, the only effect is to suppress errors about
65 * scanning unpopulated materialized views.
66 */
67#define EXEC_FLAG_EXPLAIN_ONLY 0x0001 /* EXPLAIN, no ANALYZE */
68#define EXEC_FLAG_EXPLAIN_GENERIC 0x0002 /* EXPLAIN (GENERIC_PLAN) */
69#define EXEC_FLAG_REWIND 0x0004 /* need efficient rescan */
70#define EXEC_FLAG_BACKWARD 0x0008 /* need backward scan */
71#define EXEC_FLAG_MARK 0x0010 /* need mark/restore */
72#define EXEC_FLAG_SKIP_TRIGGERS 0x0020 /* skip AfterTrigger setup */
73#define EXEC_FLAG_WITH_NO_DATA 0x0040 /* REFRESH ... WITH NO DATA */
74
75
76/* Hook for plugins to get control in ExecutorStart() */
77typedef void (*ExecutorStart_hook_type) (QueryDesc *queryDesc, int eflags);
79
80/* Hook for plugins to get control in ExecutorRun() */
81typedef void (*ExecutorRun_hook_type) (QueryDesc *queryDesc,
82 ScanDirection direction,
83 uint64 count);
85
86/* Hook for plugins to get control in ExecutorFinish() */
87typedef void (*ExecutorFinish_hook_type) (QueryDesc *queryDesc);
89
90/* Hook for plugins to get control in ExecutorEnd() */
91typedef void (*ExecutorEnd_hook_type) (QueryDesc *queryDesc);
93
94/* Hook for plugins to get control in ExecCheckPermissions() */
97 bool ereport_on_violation);
99
100
101/*
102 * prototypes from functions in execAmi.c
103 */
104typedef struct Path Path; /* avoid including pathnodes.h here */
105
106extern void ExecReScan(PlanState *node);
107extern void ExecMarkPos(PlanState *node);
108extern void ExecRestrPos(PlanState *node);
110extern bool ExecSupportsBackwardScan(Plan *node);
112
113/*
114 * prototypes from functions in execCurrent.c
115 */
116extern bool execCurrentOf(CurrentOfExpr *cexpr,
117 ExprContext *econtext,
120
121/*
122 * prototypes from functions in execGrouping.c
123 */
125 int numCols,
126 const AttrNumber *keyColIdx,
127 const Oid *eqOperators,
128 const Oid *collations,
129 PlanState *parent);
130extern void execTuplesHashPrepare(int numCols,
131 const Oid *eqOperators,
132 Oid **eqFuncOids,
137 int numCols,
138 AttrNumber *keyColIdx,
139 const Oid *eqfuncoids,
140 FmgrInfo *hashfunctions,
141 Oid *collations,
142 double nelements,
143 Size additionalsize,
145 MemoryContext tuplescxt,
146 MemoryContext tempcxt,
149 TupleTableSlot *slot,
150 bool *isnew, uint32 *hash);
152 TupleTableSlot *slot);
154 TupleTableSlot *slot,
155 bool *isnew, uint32 hash);
157 TupleTableSlot *slot,
160extern void ResetTupleHashTable(TupleHashTable hashtable);
161extern Size EstimateTupleHashTableSpace(double nentries,
163 Size additionalsize);
164
165#ifndef FRONTEND
166/*
167 * Return size of the hash bucket. Useful for estimating memory usage.
168 */
169static inline size_t
171{
172 return sizeof(TupleHashEntryData);
173}
174
175/*
176 * Return tuple from hash entry.
177 */
178static inline MinimalTuple
180{
181 return entry->firstTuple;
182}
183
184/*
185 * Get a pointer into the additional space allocated for this entry. The
186 * memory will be maxaligned and zeroed.
187 *
188 * The amount of space available is the additionalsize requested in the call
189 * to BuildTupleHashTable(). If additionalsize was specified as zero, return
190 * NULL.
191 */
192static inline void *
194{
195 if (hashtable->additionalsize > 0)
196 return (char *) entry->firstTuple - hashtable->additionalsize;
197 else
198 return NULL;
199}
200#endif
201
202/*
203 * prototypes from functions in execJunk.c
204 */
205extern JunkFilter *ExecInitJunkFilter(List *targetList,
206 TupleTableSlot *slot);
209 TupleTableSlot *slot);
211 const char *attrName);
213 const char *attrName);
215 TupleTableSlot *slot);
216
217/*
218 * ExecGetJunkAttribute
219 *
220 * Given a junk filter's input tuple (slot) and a junk attribute's number
221 * previously found by ExecFindJunkAttribute, extract & return the value and
222 * isNull flag of the attribute.
223 */
224#ifndef FRONTEND
225static inline Datum
227{
228 Assert(attno > 0);
229 return slot_getattr(slot, attno, isNull);
230}
231#endif
232
233/*
234 * prototypes from functions in execMain.c
235 */
236extern void ExecutorStart(QueryDesc *queryDesc, int eflags);
237extern void standard_ExecutorStart(QueryDesc *queryDesc, int eflags);
238extern void ExecutorRun(QueryDesc *queryDesc,
239 ScanDirection direction, uint64 count);
240extern void standard_ExecutorRun(QueryDesc *queryDesc,
241 ScanDirection direction, uint64 count);
242extern void ExecutorFinish(QueryDesc *queryDesc);
243extern void standard_ExecutorFinish(QueryDesc *queryDesc);
244extern void ExecutorEnd(QueryDesc *queryDesc);
245extern void standard_ExecutorEnd(QueryDesc *queryDesc);
246extern void ExecutorRewind(QueryDesc *queryDesc);
248 List *rteperminfos, bool ereport_on_violation);
250extern void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation,
251 OnConflictAction onConflictAction,
253extern void InitResultRelInfo(ResultRelInfo *resultRelInfo,
257 int instrument_options);
258extern ResultRelInfo *ExecGetTriggerResultRel(EState *estate, Oid relid,
260extern List *ExecGetAncestorResultRels(EState *estate, ResultRelInfo *resultRelInfo);
261extern void ExecConstraints(ResultRelInfo *resultRelInfo,
262 TupleTableSlot *slot, EState *estate);
264 TupleTableSlot *slot,
265 EState *estate,
267extern bool ExecPartitionCheck(ResultRelInfo *resultRelInfo,
268 TupleTableSlot *slot, EState *estate, bool emitError);
269extern void ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo,
270 TupleTableSlot *slot, EState *estate);
271extern void ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo,
272 TupleTableSlot *slot, EState *estate);
273extern char *ExecBuildSlotValueDescription(Oid reloid, TupleTableSlot *slot,
274 TupleDesc tupdesc,
276 int maxfieldlen);
278extern ExecRowMark *ExecFindRowMark(EState *estate, Index rti, bool missing_ok);
280extern TupleTableSlot *EvalPlanQual(EPQState *epqstate, Relation relation,
281 Index rti, TupleTableSlot *inputslot);
282extern void EvalPlanQualInit(EPQState *epqstate, EState *parentestate,
283 Plan *subplan, List *auxrowmarks,
284 int epqParam, List *resultRelations);
285extern void EvalPlanQualSetPlan(EPQState *epqstate,
286 Plan *subplan, List *auxrowmarks);
288 Relation relation, Index rti);
289
290#define EvalPlanQualSetSlot(epqstate, slot) ((epqstate)->origslot = (slot))
291extern bool EvalPlanQualFetchRowMark(EPQState *epqstate, Index rti, TupleTableSlot *slot);
292extern TupleTableSlot *EvalPlanQualNext(EPQState *epqstate);
293extern void EvalPlanQualBegin(EPQState *epqstate);
294extern void EvalPlanQualEnd(EPQState *epqstate);
295
296/*
297 * functions in execProcnode.c
298 */
299extern PlanState *ExecInitNode(Plan *node, EState *estate, int eflags);
301extern Node *MultiExecProcNode(PlanState *node);
302extern void ExecEndNode(PlanState *node);
303extern void ExecShutdownNode(PlanState *node);
304extern void ExecSetTupleBound(int64 tuples_needed, PlanState *child_node);
305
306/*
307 * ExecProcNodeInstr() is implemented in instrument.c, as that allows for
308 * inlining of the instrumentation functions, but thematically it ought to be
309 * in execProcnode.c.
310 */
312
313
314/* ----------------------------------------------------------------
315 * ExecProcNode
316 *
317 * Execute the given node to return a(nother) tuple.
318 * ----------------------------------------------------------------
319 */
320#ifndef FRONTEND
321static inline TupleTableSlot *
323{
324 if (node->chgParam != NULL) /* something changed? */
325 ExecReScan(node); /* let ReScan handle this */
326
327 return node->ExecProcNode(node);
328}
329#endif
330
331/*
332 * prototypes from functions in execExpr.c
333 */
334extern ExprState *ExecInitExpr(Expr *node, PlanState *parent);
335extern ExprState *ExecInitExprWithParams(Expr *node, ParamListInfo ext_params);
336extern ExprState *ExecInitQual(List *qual, PlanState *parent);
337extern ExprState *ExecInitCheck(List *qual, PlanState *parent);
338extern List *ExecInitExprList(List *nodes, PlanState *parent);
340 bool doSort, bool doHash, bool nullcheck);
342 const TupleTableSlotOps *ops,
343 FmgrInfo *hashfunctions,
344 Oid *collations,
345 int numCols,
346 AttrNumber *keyColIdx,
347 PlanState *parent,
348 uint32 init_value);
350 const TupleTableSlotOps *ops,
351 const Oid *hashfunc_oids,
352 const List *collations,
353 const List *hash_exprs,
354 const bool *opstrict, PlanState *parent,
355 uint32 init_value);
358 int numCols,
359 const AttrNumber *keyColIdx,
360 const Oid *eqfunctions,
361 const Oid *collations,
362 PlanState *parent);
364 const TupleTableSlotOps *lops,
365 const TupleTableSlotOps *rops,
366 const Oid *eqfunctions,
367 const Oid *collations,
368 const List *param_exprs,
369 PlanState *parent);
371 ExprContext *econtext,
372 TupleTableSlot *slot,
373 PlanState *parent,
376 bool evalTargetList,
379 ExprContext *econtext,
380 TupleTableSlot *slot,
381 PlanState *parent);
382extern ExprState *ExecPrepareExpr(Expr *node, EState *estate);
383extern ExprState *ExecPrepareQual(List *qual, EState *estate);
384extern ExprState *ExecPrepareCheck(List *qual, EState *estate);
385extern List *ExecPrepareExprList(List *nodes, EState *estate);
386
387/*
388 * ExecEvalExpr
389 *
390 * Evaluate expression identified by "state" in the execution context
391 * given by "econtext". *isNull is set to the is-null flag for the result,
392 * and the Datum value is the function result.
393 *
394 * The caller should already have switched into the temporary memory
395 * context econtext->ecxt_per_tuple_memory. The convenience entry point
396 * ExecEvalExprSwitchContext() is provided for callers who don't prefer to
397 * do the switch in an outer loop.
398 */
399#ifndef FRONTEND
400static inline Datum
402 ExprContext *econtext,
403 bool *isNull)
404{
405 return state->evalfunc(state, econtext, isNull);
406}
407#endif
408
409/*
410 * ExecEvalExprNoReturn
411 *
412 * Like ExecEvalExpr(), but for cases where no return value is expected,
413 * because the side-effects of expression evaluation are what's desired. This
414 * is e.g. used for projection and aggregate transition computation.
415 *
416 * Evaluate expression identified by "state" in the execution context
417 * given by "econtext".
418 *
419 * The caller should already have switched into the temporary memory context
420 * econtext->ecxt_per_tuple_memory. The convenience entry point
421 * ExecEvalExprNoReturnSwitchContext() is provided for callers who don't
422 * prefer to do the switch in an outer loop.
423 */
424#ifndef FRONTEND
425static inline void
427 ExprContext *econtext)
428{
430
431 retDatum = state->evalfunc(state, econtext, NULL);
432
433 Assert(retDatum == (Datum) 0);
434}
435#endif
436
437/*
438 * ExecEvalExprSwitchContext
439 *
440 * Same as ExecEvalExpr, but get into the right allocation context explicitly.
441 */
442#ifndef FRONTEND
443static inline Datum
445 ExprContext *econtext,
446 bool *isNull)
447{
450
452 retDatum = state->evalfunc(state, econtext, isNull);
454 return retDatum;
455}
456#endif
457
458/*
459 * ExecEvalExprNoReturnSwitchContext
460 *
461 * Same as ExecEvalExprNoReturn, but get into the right allocation context
462 * explicitly.
463 */
464#ifndef FRONTEND
465static inline void
475#endif
476
477/*
478 * ExecProject
479 *
480 * Projects a tuple based on projection info and stores it in the slot passed
481 * to ExecBuildProjectionInfo().
482 *
483 * Note: the result is always a virtual tuple; therefore it may reference
484 * the contents of the exprContext's scan tuples and/or temporary results
485 * constructed in the exprContext. If the caller wishes the result to be
486 * valid longer than that data will be valid, he must call ExecMaterializeSlot
487 * on the result slot.
488 */
489#ifndef FRONTEND
490static inline TupleTableSlot *
492{
493 ExprContext *econtext = projInfo->pi_exprContext;
494 ExprState *state = &projInfo->pi_state;
495 TupleTableSlot *slot = state->resultslot;
496
497 /*
498 * Clear any former contents of the result slot. This makes it safe for
499 * us to use the slot's Datum/isnull arrays as workspace.
500 */
501 ExecClearTuple(slot);
502
503 /* Run the expression */
505
506 /*
507 * Successfully formed a result row. Mark the result slot as containing a
508 * valid virtual tuple (inlined version of ExecStoreVirtualTuple()).
509 */
510 slot->tts_flags &= ~TTS_FLAG_EMPTY;
511 slot->tts_nvalid = slot->tts_tupleDescriptor->natts;
512
513 return slot;
514}
515#endif
516
517/*
518 * ExecQual - evaluate a qual prepared with ExecInitQual (possibly via
519 * ExecPrepareQual). Returns true if qual is satisfied, else false.
520 *
521 * Note: ExecQual used to have a third argument "resultForNull". The
522 * behavior of this function now corresponds to resultForNull == false.
523 * If you want the resultForNull == true behavior, see ExecCheck.
524 */
525#ifndef FRONTEND
526static inline bool
528{
529 Datum ret;
530 bool isnull;
531
532 /* short-circuit (here and in ExecInitQual) for empty restriction list */
533 if (state == NULL)
534 return true;
535
536 /* verify that expression was compiled using ExecInitQual */
537 Assert(state->flags & EEO_FLAG_IS_QUAL);
538
539 ret = ExecEvalExprSwitchContext(state, econtext, &isnull);
540
541 /* EEOP_QUAL should never return NULL */
542 Assert(!isnull);
543
544 return DatumGetBool(ret);
545}
546#endif
547
548/*
549 * ExecQualAndReset() - evaluate qual with ExecQual() and reset expression
550 * context.
551 */
552#ifndef FRONTEND
553static inline bool
555{
556 bool ret = ExecQual(state, econtext);
557
558 /* inline ResetExprContext, to avoid ordering issue in this file */
560 return ret;
561}
562#endif
563
564extern bool ExecCheck(ExprState *state, ExprContext *econtext);
565
566/*
567 * prototypes from functions in execSRF.c
568 */
570 ExprContext *econtext, PlanState *parent);
572 ExprContext *econtext,
574 TupleDesc expectedDesc,
575 bool randomAccess);
577 ExprContext *econtext, PlanState *parent);
579 ExprContext *econtext,
581 bool *isNull,
582 ExprDoneCond *isDone);
583
584/*
585 * prototypes from functions in execScan.c
586 */
587typedef TupleTableSlot *(*ExecScanAccessMtd) (ScanState *node);
589
592extern void ExecAssignScanProjectionInfo(ScanState *node);
593extern void ExecAssignScanProjectionInfoWithVarno(ScanState *node, int varno);
594extern void ExecScanReScan(ScanState *node);
595
596/*
597 * prototypes from functions in execTuples.c
598 */
599extern void ExecInitResultTypeTL(PlanState *planstate);
600extern void ExecInitResultSlot(PlanState *planstate,
601 const TupleTableSlotOps *tts_ops);
602extern void ExecInitResultTupleSlotTL(PlanState *planstate,
603 const TupleTableSlotOps *tts_ops);
604extern void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate,
605 TupleDesc tupledesc,
606 const TupleTableSlotOps *tts_ops,
607 uint16 flags);
609 TupleDesc tupledesc,
610 const TupleTableSlotOps *tts_ops);
612 const TupleTableSlotOps *tts_ops);
613extern TupleDesc ExecTypeFromTL(List *targetList);
614extern TupleDesc ExecCleanTypeFromTL(List *targetList);
618
624
626 TupleDesc tupdesc,
627 const TupleTableSlotOps *tts_ops);
628extern void do_tup_output(TupOutputState *tstate, const Datum *values, const bool *isnull);
629extern void do_text_output_multiline(TupOutputState *tstate, const char *txt);
631
632/*
633 * Write a single line of text given as a C string.
634 *
635 * Should only be used with a single-TEXT-attribute tupdesc.
636 */
637#define do_text_output_oneline(tstate, str_to_emit) \
638 do { \
639 Datum values_[1]; \
640 bool isnull_[1]; \
641 values_[0] = PointerGetDatum(cstring_to_text(str_to_emit)); \
642 isnull_[0] = false; \
643 do_tup_output(tstate, values_, isnull_); \
644 pfree(DatumGetPointer(values_[0])); \
645 } while (0)
646
647
648/*
649 * prototypes from functions in execUtils.c
650 */
651extern EState *CreateExecutorState(void);
652extern void FreeExecutorState(EState *estate);
653extern ExprContext *CreateExprContext(EState *estate);
656extern void FreeExprContext(ExprContext *econtext, bool isCommit);
657extern void ReScanExprContext(ExprContext *econtext);
658
659#define ResetExprContext(econtext) \
660 MemoryContextReset((econtext)->ecxt_per_tuple_memory)
661
663
664/* Get an EState's per-output-tuple exprcontext, making it if first use */
665#define GetPerTupleExprContext(estate) \
666 ((estate)->es_per_tuple_exprcontext ? \
667 (estate)->es_per_tuple_exprcontext : \
668 MakePerTupleExprContext(estate))
669
670#define GetPerTupleMemoryContext(estate) \
671 (GetPerTupleExprContext(estate)->ecxt_per_tuple_memory)
672
673/* Reset an EState's per-output-tuple exprcontext, if one's been created */
674#define ResetPerTupleExprContext(estate) \
675 do { \
676 if ((estate)->es_per_tuple_exprcontext) \
677 ResetExprContext((estate)->es_per_tuple_exprcontext); \
678 } while (0)
679
680extern void ExecAssignExprContext(EState *estate, PlanState *planstate);
681extern TupleDesc ExecGetResultType(PlanState *planstate);
682extern const TupleTableSlotOps *ExecGetResultSlotOps(PlanState *planstate,
683 bool *isfixed);
685 int nplans);
687extern void ExecAssignProjectionInfo(PlanState *planstate,
690 TupleDesc inputDesc, int varno);
691extern void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc);
692extern void ExecCreateScanSlotFromOuterPlan(EState *estate,
694 const TupleTableSlotOps *tts_ops);
695
696extern bool ExecRelationIsTargetRelation(EState *estate, Index scanrelid);
697
698extern bool ScanRelIsReadOnly(ScanState *ss);
699
700extern Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags);
701
702extern void ExecInitRangeTable(EState *estate, List *rangeTable, List *permInfos,
704extern void ExecCloseRangeTableRelations(EState *estate);
705extern void ExecCloseResultRelations(EState *estate);
706
707static inline RangeTblEntry *
709{
710 return (RangeTblEntry *) list_nth(estate->es_range_table, rti - 1);
711}
712
714 bool isResultRel);
715extern void ExecInitResultRelation(EState *estate, ResultRelInfo *resultRelInfo,
716 Index rti);
717
718extern int executor_errposition(EState *estate, int location);
719
720extern void RegisterExprContextCallback(ExprContext *econtext,
722 Datum arg);
723extern void UnregisterExprContextCallback(ExprContext *econtext,
725 Datum arg);
726
727extern Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname,
728 bool *isNull);
730 bool *isNull);
731
732extern int ExecTargetListLength(List *targetlist);
733extern int ExecCleanTargetListLength(List *targetlist);
734
740extern TupleConversionMap *ExecGetRootToChildMap(ResultRelInfo *resultRelInfo, EState *estate);
741
747
748/*
749 * prototypes from functions in execIndexing.c
750 */
751extern void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative);
752extern void ExecCloseIndices(ResultRelInfo *resultRelInfo);
753
754/* flags for ExecInsertIndexTuples */
755#define EIIT_IS_UPDATE (1<<0)
756#define EIIT_NO_DUPE_ERROR (1<<1)
757#define EIIT_ONLY_SUMMARIZING (1<<2)
758extern List *ExecInsertIndexTuples(ResultRelInfo *resultRelInfo, EState *estate,
759 uint32 flags, TupleTableSlot *slot,
760 List *arbiterIndexes,
761 bool *specConflict);
762extern bool ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo,
763 TupleTableSlot *slot,
766 List *arbiterIndexes);
768 IndexInfo *indexInfo,
770 const Datum *values, const bool *isnull,
771 EState *estate, bool newIndex);
772
773/*
774 * prototypes from functions in execReplication.c
775 */
777 LockTupleMode lockmode,
780extern bool RelationFindReplTupleSeq(Relation rel, LockTupleMode lockmode,
794extern void ExecSimpleRelationInsert(ResultRelInfo *resultRelInfo,
795 EState *estate, TupleTableSlot *slot);
796extern void ExecSimpleRelationUpdate(ResultRelInfo *resultRelInfo,
797 EState *estate, EPQState *epqstate,
799extern void ExecSimpleRelationDelete(ResultRelInfo *resultRelInfo,
800 EState *estate, EPQState *epqstate,
802extern void CheckCmdReplicaIdentity(Relation rel, CmdType cmd);
803
805 const char *nspname, const char *relname);
806
807/*
808 * prototypes from functions in nodeModifyTable.c
809 */
811 TupleTableSlot *planSlot,
815 bool missing_ok,
816 bool update_cache);
817
818#endif /* EXECUTOR_H */
int16 AttrNumber
Definition attnum.h:21
static Datum values[MAXATTR]
Definition bootstrap.c:190
#define PGDLLIMPORT
Definition c.h:1433
#define PG_USED_FOR_ASSERTS_ONLY
Definition c.h:249
#define Assert(condition)
Definition c.h:943
int64_t int64
Definition c.h:621
uint64_t uint64
Definition c.h:625
uint16_t uint16
Definition c.h:623
uint32_t uint32
Definition c.h:624
unsigned int Index
Definition c.h:698
uint32 TransactionId
Definition c.h:736
size_t Size
Definition c.h:689
static DataChecksumsWorkerOperation operation
int64 TimestampTz
Definition timestamp.h:39
Datum arg
Definition elog.c:1323
ExprDoneCond
Definition execnodes.h:340
#define EEO_FLAG_IS_QUAL
Definition execnodes.h:88
TupleTableSlot *(* ExecProcNodeMtd)(PlanState *pstate)
Definition execnodes.h:1187
static MinimalTuple TupleHashEntryGetTuple(TupleHashEntry entry)
Definition executor.h:179
void CheckSubscriptionRelkind(char localrelkind, char remoterelkind, const char *nspname, const char *relname)
TupleDesc ExecGetResultType(PlanState *planstate)
Definition execUtils.c:500
Relation ExecGetRangeTableRelation(EState *estate, Index rti, bool isResultRel)
Definition execUtils.c:851
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:2559
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:2585
TupleConversionMap * ExecGetRootToChildMap(ResultRelInfo *resultRelInfo, EState *estate)
Definition execUtils.c:1352
ExecAuxRowMark * ExecBuildAuxRowMark(ExecRowMark *erm, List *targetlist)
Definition execMain.c:2608
ResultRelInfo * ExecGetTriggerResultRel(EState *estate, Oid relid, ResultRelInfo *rootRelInfo)
Definition execMain.c:1372
void ExecAssignScanProjectionInfoWithVarno(ScanState *node, int varno)
Definition execScan.c:94
PGDLLIMPORT ExecutorEnd_hook_type ExecutorEnd_hook
Definition execMain.c:73
TupleTableSlot * EvalPlanQualSlot(EPQState *epqstate, Relation relation, Index rti)
Definition execMain.c:2805
Bitmapset * ExecGetExtraUpdatedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1429
void ExecSimpleRelationDelete(ResultRelInfo *resultRelInfo, EState *estate, EPQState *epqstate, TupleTableSlot *searchslot)
void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation, OnConflictAction onConflictAction, List *mergeActions)
Definition execMain.c:1065
void EvalPlanQualBegin(EPQState *epqstate)
Definition execMain.c:2960
Bitmapset * ExecGetInsertedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1387
TupleTableSlot * ExecGetTriggerNewSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1252
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)
Definition execExpr.c:4296
PGDLLIMPORT ExecutorStart_hook_type ExecutorStart_hook
Definition execMain.c:70
char * ExecBuildSlotValueDescription(Oid reloid, TupleTableSlot *slot, TupleDesc tupdesc, Bitmapset *modifiedCols, int maxfieldlen)
Definition execMain.c:2420
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:448
static TupleTableSlot * ExecProject(ProjectionInfo *projInfo)
Definition executor.h:491
bool ExecPartitionCheck(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, bool emitError)
Definition execMain.c:1885
static void * TupleHashEntryGetAdditional(TupleHashTable hashtable, TupleHashEntry entry)
Definition executor.h:193
ExprState * ExecInitExpr(Expr *node, PlanState *parent)
Definition execExpr.c:143
bool ScanRelIsReadOnly(ScanState *ss)
Definition execUtils.c:751
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:312
ExprState * ExecInitCheck(List *qual, PlanState *parent)
Definition execExpr.c:315
SetExprState * ExecInitFunctionResultSet(Expr *expr, ExprContext *econtext, PlanState *parent)
Definition execSRF.c:446
void execTuplesHashPrepare(int numCols, const Oid *eqOperators, Oid **eqFuncOids, FmgrInfo **hashFunctions)
void(* ExecutorFinish_hook_type)(QueryDesc *queryDesc)
Definition executor.h:87
TupleConversionMap * ExecGetChildToRootMap(ResultRelInfo *resultRelInfo)
Definition execUtils.c:1326
ExprContext * CreateStandaloneExprContext(void)
Definition execUtils.c:362
void ExecutorEnd(QueryDesc *queryDesc)
Definition execMain.c:477
void EvalPlanQualInit(EPQState *epqstate, EState *parentestate, Plan *subplan, List *auxrowmarks, int epqParam, List *resultRelations)
Definition execMain.c:2747
TupleTableSlot * ExecGetTriggerOldSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1230
TupleDesc ExecCleanTypeFromTL(List *targetList)
void ExecWithCheckOptions(WCOKind kind, ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:2257
int executor_errposition(EState *estate, int location)
Definition execUtils.c:962
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:708
Tuplestorestate * ExecMakeTableFunctionResult(SetExprState *setexpr, ExprContext *econtext, MemoryContext argContext, TupleDesc expectedDesc, bool randomAccess)
Definition execSRF.c:102
Datum GetAttributeByNum(HeapTupleHeader tuple, AttrNumber attrno, bool *isNull)
Definition execUtils.c:1150
void FreeExprContext(ExprContext *econtext, bool isCommit)
Definition execUtils.c:421
void ExecInitRangeTable(EState *estate, List *rangeTable, List *permInfos, Bitmapset *unpruned_relids)
Definition execUtils.c:799
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:1408
TupleTableSlot * ExecGetUpdateNewTuple(ResultRelInfo *relinfo, TupleTableSlot *planSlot, TupleTableSlot *oldSlot)
const TupleTableSlotOps * ExecGetCommonSlotOps(PlanState **planstates, int nplans)
Definition execUtils.c:541
void ExecInitResultRelation(EState *estate, ResultRelInfo *resultRelInfo, Index rti)
Definition execUtils.c:906
void end_tup_output(TupOutputState *tstate)
void InitResultRelInfo(ResultRelInfo *resultRelInfo, Relation resultRelationDesc, Index resultRelationIndex, ResultRelInfo *partition_root_rri, int instrument_options)
Definition execMain.c:1271
void ExecMarkPos(PlanState *node)
Definition execAmi.c:328
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:499
void standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
Definition execMain.c:143
void ExecCreateScanSlotFromOuterPlan(EState *estate, ScanState *scanstate, const TupleTableSlotOps *tts_ops)
Definition execUtils.c:709
void ExecutorFinish(QueryDesc *queryDesc)
Definition execMain.c:417
bool ExecSupportsMarkRestore(Path *pathnode)
Definition execAmi.c:419
TupleTableSlot * ExecProcNodeInstr(PlanState *node)
Definition instrument.c:181
void ExecInitScanTupleSlot(EState *estate, ScanState *scanstate, TupleDesc tupledesc, const TupleTableSlotOps *tts_ops, uint16 flags)
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)
TupleHashEntry LookupTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot, bool *isnew, uint32 *hash)
void EvalPlanQualEnd(EPQState *epqstate)
Definition execMain.c:3208
void ExecInitResultTypeTL(PlanState *planstate)
void EvalPlanQualSetPlan(EPQState *epqstate, Plan *subplan, List *auxrowmarks)
Definition execMain.c:2788
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:81
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:72
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:547
void do_text_output_multiline(TupOutputState *tstate, const char *txt)
void ExecShutdownNode(PlanState *node)
void ExecAssignExprContext(EState *estate, PlanState *planstate)
Definition execUtils.c:490
void ExecutorStart(QueryDesc *queryDesc, int eflags)
Definition execMain.c:124
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:2123
SetExprState * ExecInitTableFunctionResult(Expr *expr, ExprContext *econtext, PlanState *parent)
Definition execSRF.c:57
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:2678
void ExecAssignProjectionInfo(PlanState *planstate, TupleDesc inputDesc)
Definition execUtils.c:588
void(* ExecutorStart_hook_type)(QueryDesc *queryDesc, int eflags)
Definition executor.h:77
static bool ExecQual(ExprState *state, ExprContext *econtext)
Definition executor.h:527
ExprContext * MakePerTupleExprContext(EState *estate)
Definition execUtils.c:463
bool ExecCheckOneRelPerms(RTEPermissionInfo *perminfo)
Definition execMain.c:657
void UnregisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, Datum arg)
Definition execUtils.c:1015
void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc)
Definition execUtils.c:697
bool(* ExecScanRecheckMtd)(ScanState *node, TupleTableSlot *slot)
Definition executor.h:588
const TupleTableSlotOps * ExecGetCommonChildSlotOps(PlanState *ps)
Definition execUtils.c:568
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:95
uint32 TupleHashTableHash(TupleHashTable hashtable, TupleTableSlot *slot)
bool EvalPlanQualFetchRowMark(EPQState *epqstate, Index rti, TupleTableSlot *slot)
Definition execMain.c:2833
List * ExecInitExprList(List *nodes, PlanState *parent)
Definition execExpr.c:335
void ExecConditionalAssignProjectionInfo(PlanState *planstate, TupleDesc inputDesc, int varno)
Definition execUtils.c:608
void(* ExecutorEnd_hook_type)(QueryDesc *queryDesc)
Definition executor.h:91
void ExecInitResultTupleSlotTL(PlanState *planstate, const TupleTableSlotOps *tts_ops)
void ExecCloseIndices(ResultRelInfo *resultRelInfo)
void RegisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, Datum arg)
Definition execUtils.c:989
static bool ExecQualAndReset(ExprState *state, ExprContext *econtext)
Definition executor.h:554
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:1201
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:197
static size_t TupleHashEntrySize(void)
Definition executor.h:170
bool ExecRelationIsTargetRelation(EState *estate, Index scanrelid)
Definition execUtils.c:734
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:4461
TupleHashEntry FindTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot, ExprState *eqcomp, ExprState *hashexpr)
void ExecCloseResultRelations(EState *estate)
Definition execMain.c:1604
List * ExecInsertIndexTuples(ResultRelInfo *resultRelInfo, EState *estate, uint32 flags, TupleTableSlot *slot, List *arbiterIndexes, bool *specConflict)
Size EstimateTupleHashTableSpace(double nentries, Size tupleWidth, Size additionalsize)
static TupleTableSlot * ExecProcNode(PlanState *node)
Definition executor.h:322
TupleTableSlot * ExecGetAllNullSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1299
bool ExecMaterializesOutput(NodeTag plantype)
Definition execAmi.c:636
void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative)
int ExecCleanTargetListLength(List *targetlist)
Definition execUtils.c:1211
ExprContext * CreateWorkExprContext(EState *estate)
Definition execUtils.c:327
TupOutputState * begin_tup_output_tupdesc(DestReceiver *dest, TupleDesc tupdesc, const TupleTableSlotOps *tts_ops)
TupleTableSlot *(* ExecScanAccessMtd)(ScanState *node)
Definition executor.h:587
void UpdateChangedParamSet(PlanState *node, Bitmapset *newchg)
Definition execUtils.c:936
void ExecScanReScan(ScanState *node)
Definition execScan.c:108
bool ExecSupportsBackwardScan(Plan *node)
Definition execAmi.c:512
const TupleTableSlotOps * ExecGetResultSlotOps(PlanState *planstate, bool *isfixed)
Definition execUtils.c:509
Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname, bool *isNull)
Definition execUtils.c:1087
PGDLLIMPORT ExecutorCheckPerms_hook_type ExecutorCheckPerms_hook
Definition execMain.c:76
Bitmapset * ExecGetAllUpdatedCols(ResultRelInfo *relinfo, EState *estate)
Definition execUtils.c:1444
void ExecReScan(PlanState *node)
Definition execAmi.c:78
static void ExecEvalExprNoReturn(ExprState *state, ExprContext *econtext)
Definition executor.h:426
PGDLLIMPORT ExecutorRun_hook_type ExecutorRun_hook
Definition execMain.c:71
TupleDesc ExecTypeFromExprList(List *exprList)
TupleDesc ExecTypeFromTL(List *targetList)
void standard_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
Definition execMain.c:318
static Datum ExecEvalExpr(ExprState *state, ExprContext *econtext, bool *isNull)
Definition executor.h:401
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:486
void ExecRestrPos(PlanState *node)
Definition execAmi.c:377
static void ExecEvalExprNoReturnSwitchContext(ExprState *state, ExprContext *econtext)
Definition executor.h:466
void ExecCloseRangeTableRelations(EState *estate)
Definition execMain.c:1664
static Datum ExecEvalExprSwitchContext(ExprState *state, ExprContext *econtext, bool *isNull)
Definition executor.h:444
void ExecSetExecProcNode(PlanState *node, ExecProcNodeMtd function)
void ExecPartitionCheckEmitError(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:1938
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:4620
void ExecConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate)
Definition execMain.c:2009
TupleTableSlot * ExecInitNullTupleSlot(EState *estate, TupleDesc tupType, const TupleTableSlotOps *tts_ops)
TupleTableSlot * ExecGetReturningSlot(EState *estate, ResultRelInfo *relInfo)
Definition execUtils.c:1274
Relation ExecOpenScanRelation(EState *estate, Index scanrelid, int eflags)
Definition execUtils.c:768
bool ExecCheckPermissions(List *rangeTable, List *rteperminfos, bool ereport_on_violation)
Definition execMain.c:593
static Datum ExecGetJunkAttribute(TupleTableSlot *slot, AttrNumber attno, bool *isNull)
Definition executor.h:226
void ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count)
Definition execMain.c:308
Oid ExecGetResultRelCheckAsUser(ResultRelInfo *relInfo, EState *estate)
Definition execUtils.c:1515
EState * CreateExecutorState(void)
Definition execUtils.c:90
ExprState * ExecPrepareCheck(List *qual, EState *estate)
Definition execExpr.c:816
List * ExecGetAncestorResultRels(EState *estate, ResultRelInfo *resultRelInfo)
Definition execMain.c:1459
TupleTableSlot * EvalPlanQualNext(EPQState *epqstate)
Definition execMain.c:2944
bool ExecCheckIndexConstraints(ResultRelInfo *resultRelInfo, TupleTableSlot *slot, EState *estate, ItemPointer conflictTid, const ItemPointerData *tupleid, List *arbiterIndexes)
void standard_ExecutorFinish(QueryDesc *queryDesc)
Definition execMain.c:426
void(* ExprContextCallbackFunction)(Datum arg)
Definition fmgr.h:26
struct parser_state ps
LockTupleMode
Definition lockoptions.h:51
void MemoryContextReset(MemoryContext context)
Definition mcxt.c:406
OnConflictAction
Definition nodes.h:427
CmdType
Definition nodes.h:273
NodeTag
Definition nodes.h:27
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
Definition palloc.h:138
WCOKind
NameData attname
on_exit_nicely_callback function
NameData relname
Definition pg_class.h:40
static void * list_nth(const List *list, int n)
Definition pg_list.h:331
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:724
ScanDirection
Definition sdir.h:25
List * es_range_table
Definition execnodes.h:699
MemoryContext ecxt_per_tuple_memory
Definition execnodes.h:295
Definition pg_list.h:54
Definition nodes.h:135
Bitmapset * chgParam
Definition execnodes.h:1236
ExecProcNodeMtd ExecProcNode
Definition execnodes.h:1208
TupleTableSlot * slot
Definition executor.h:621
DestReceiver * dest
Definition executor.h:622
MinimalTuple firstTuple
Definition execnodes.h:892
TupleDesc tts_tupleDescriptor
Definition tuptable.h:129
AttrNumber tts_nvalid
Definition tuptable.h:126
uint16 tts_flags
Definition tuptable.h:124
Definition type.h:97
static Datum slot_getattr(TupleTableSlot *slot, int attnum, bool *isnull)
Definition tuptable.h:417
static TupleTableSlot * ExecClearTuple(TupleTableSlot *slot)
Definition tuptable.h:476
uint16 ReplOriginId
Definition xlogdefs.h:69