diff options
author | Tom Lane | 2019-12-26 16:20:05 +0000 |
---|---|---|
committer | Tom Lane | 2019-12-26 16:20:05 +0000 |
commit | fbe0232358c14792e1b94b902d0f7a9b55154275 (patch) | |
tree | 6a829fbce73b732e7c8806c9642abe4fcd042e51 | |
parent | b541e9accb28c90656388a3f827ca3a68dd2a308 (diff) |
Improve comments in utils/rel.h.
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
-rw-r--r-- | src/include/utils/rel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 2239f791e81..5ce9d8a0867 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -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 */ |