Skip to content

Commit 113b004

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 parent 382ceff commit 113b004

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
AttrNumber jf_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-
* RangeTableIndex result relation's range table index
348-
* RelationDesc relation descriptor for result relation
349-
* NumIndices # of indices existing on result relation
350-
* IndexRelationDescs array of relation descriptors for indices
351-
* IndexRelationInfo array of key/attr info for indices
352-
* TrigDesc triggers to be fired, if any
353-
* TrigFunctions cached lookup info for trigger functions
354-
* TrigWhenExprs array of trigger WHEN expr states
355-
* TrigInstrument optional runtime measurements for triggers
356-
* FdwRoutine FDW callback functions, if foreign table
357-
* FdwState available to save private state of FDW
358-
* usesFdwDirectModify true when modifying foreign table directly
359-
* WithCheckOptions list of WithCheckOption's to be checked
360-
* WithCheckOptionExprs list of WithCheckOption expr states
361-
* ConstraintExprs array of constraint-checking expr states
362-
* junkFilter for removing junk attributes from tuples
363-
* projectReturning for computing a RETURNING list
364-
* onConflictSetProj for computing ON CONFLICT DO UPDATE SET
365-
* onConflictSetWhere list of ON CONFLICT DO UPDATE exprs (qual)
366-
* PartitionCheck partition check expression
367-
* PartitionCheckExpr partition 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
typedef struct ResultRelInfo
371347
{
372348
NodeTag type;
349+
350+
/* result relation's range table index */
373351
Index ri_RangeTableIndex;
352+
353+
/* relation descriptor for result relation */
374354
Relation ri_RelationDesc;
355+
356+
/* # of indices existing on result relation */
375357
int ri_NumIndices;
358+
359+
/* array of relation descriptors for indices */
376360
RelationPtr ri_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
struct FdwRoutine *ri_FdwRoutine;
379+
380+
/* available to save private state of FDW */
383381
void *ri_FdwState;
382+
383+
/* true when modifying foreign table directly */
384384
bool ri_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
Relation ri_PartitionRoot;
395415
} ResultRelInfo;
396416

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy