Improve comments in utils/rel.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Dec 2019 16:20:05 +0000 (11:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 26 Dec 2019 16:20:05 +0000 (11:20 -0500)
Mark the fields that should be accessed via partitioning-related
functions, as we already did for some other fields.

Amit Langote

Discussion: https://postgr.es/m/CA+HiwqFnK6LbVMACMCaqwWrvoSFTecZzufKRahg2qGvLPYMX=g@mail.gmail.com

src/include/utils/rel.h

index 2239f791e81726fd8b9d11c04768fd852e14cf02..5ce9d8a0867bcf0e6d95ed922c46475c491ffb85 100644 (file)
@@ -95,10 +95,15 @@ typedef struct RelationData
    List       *rd_fkeylist;    /* list of ForeignKeyCacheInfo (see below) */
    bool        rd_fkeyvalid;   /* true if list has been computed */
 
+   /* data managed by RelationGetPartitionKey: */
    PartitionKey rd_partkey;    /* partition key, or NULL */
    MemoryContext rd_partkeycxt;    /* private context for rd_partkey, if any */
+
+   /* data managed by RelationGetPartitionDesc: */
    PartitionDesc rd_partdesc;  /* partition descriptor, or NULL */
    MemoryContext rd_pdcxt;     /* private context for rd_partdesc, if any */
+
+   /* data managed by RelationGetPartitionQual: */
    List       *rd_partcheck;   /* partition CHECK quals */
    bool        rd_partcheckvalid;  /* true if list has been computed */
    MemoryContext rd_partcheckcxt;  /* private cxt for rd_partcheck, if any */