Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit113b004

Browse files
committed
Reformat comments about ResultRelInfo
Also add a comment on its new member PartitionRoot.Reported-by: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
1 parent382ceff commit113b004

File tree

1 file changed

+50
-30
lines changed

1 file changed

+50
-30
lines changed

‎src/include/nodes/execnodes.h

Lines changed: 50 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -336,61 +336,81 @@ typedef struct JunkFilter
336336
AttrNumberjf_junkAttNo;
337337
}JunkFilter;
338338

339-
/* ----------------
340-
* ResultRelInfo information
341-
*
342-
*Whenever we update an existing relation, we have to
343-
*update indices on the relation, and perhaps also fire triggers.
344-
*The ResultRelInfo class is used to hold all the information needed
345-
*about a result relation, including indices.. -cim 10/15/89
346-
*
347-
*RangeTableIndexresult relation's range table index
348-
*RelationDescrelation descriptor for result relation
349-
*NumIndices# of indices existing on result relation
350-
*IndexRelationDescsarray of relation descriptors for indices
351-
*IndexRelationInfoarray of key/attr info for indices
352-
*TrigDesctriggers to be fired, if any
353-
*TrigFunctionscached lookup info for trigger functions
354-
*TrigWhenExprsarray of trigger WHEN expr states
355-
*TrigInstrumentoptional runtime measurements for triggers
356-
*FdwRoutineFDW callback functions, if foreign table
357-
*FdwStateavailable to save private state of FDW
358-
*usesFdwDirectModifytrue when modifying foreign table directly
359-
*WithCheckOptionslist of WithCheckOption's to be checked
360-
*WithCheckOptionExprslist of WithCheckOption expr states
361-
*ConstraintExprsarray of constraint-checking expr states
362-
*junkFilterfor removing junk attributes from tuples
363-
*projectReturningfor computing a RETURNING list
364-
*onConflictSetProjfor computing ON CONFLICT DO UPDATE SET
365-
*onConflictSetWherelist of ON CONFLICT DO UPDATE exprs (qual)
366-
*PartitionCheckpartition check expression
367-
*PartitionCheckExprpartition check expression state
368-
* ----------------
339+
/*
340+
* ResultRelInfo
341+
*
342+
* Whenever we update an existing relation, we have to update indexes on the
343+
* relation, and perhaps also fire triggers. ResultRelInfo holds all the
344+
* information needed about a result relation, including indexes.
369345
*/
370346
typedefstructResultRelInfo
371347
{
372348
NodeTagtype;
349+
350+
/* result relation's range table index */
373351
Indexri_RangeTableIndex;
352+
353+
/* relation descriptor for result relation */
374354
Relationri_RelationDesc;
355+
356+
/* # of indices existing on result relation */
375357
intri_NumIndices;
358+
359+
/* array of relation descriptors for indices */
376360
RelationPtrri_IndexRelationDescs;
361+
362+
/* array of key/attr info for indices */
377363
IndexInfo**ri_IndexRelationInfo;
364+
365+
/* triggers to be fired, if any */
378366
TriggerDesc*ri_TrigDesc;
367+
368+
/* cached lookup info for trigger functions */
379369
FmgrInfo*ri_TrigFunctions;
370+
371+
/* array of trigger WHEN expr states */
380372
ExprState**ri_TrigWhenExprs;
373+
374+
/* optional runtime measurements for triggers */
381375
Instrumentation*ri_TrigInstrument;
376+
377+
/* FDW callback functions, if foreign table */
382378
structFdwRoutine*ri_FdwRoutine;
379+
380+
/* available to save private state of FDW */
383381
void*ri_FdwState;
382+
383+
/* true when modifying foreign table directly */
384384
boolri_usesFdwDirectModify;
385+
386+
/* list of WithCheckOption's to be checked */
385387
List*ri_WithCheckOptions;
388+
389+
/* list of WithCheckOption expr states */
386390
List*ri_WithCheckOptionExprs;
391+
392+
/* array of constraint-checking expr states */
387393
ExprState**ri_ConstraintExprs;
394+
395+
/* for removing junk attributes from tuples */
388396
JunkFilter*ri_junkFilter;
397+
398+
/* for computing a RETURNING list */
389399
ProjectionInfo*ri_projectReturning;
400+
401+
/* for computing ON CONFLICT DO UPDATE SET */
390402
ProjectionInfo*ri_onConflictSetProj;
403+
404+
/* list of ON CONFLICT DO UPDATE exprs (qual) */
391405
ExprState*ri_onConflictSetWhere;
406+
407+
/* partition check expression */
392408
List*ri_PartitionCheck;
409+
410+
/* partition check expression state */
393411
ExprState*ri_PartitionCheckExpr;
412+
413+
/* relation descriptor for root partitioned table */
394414
Relationri_PartitionRoot;
395415
}ResultRelInfo;
396416

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp