diff options
Diffstat (limited to 'src/include/utils/rel.h')
-rw-r--r-- | src/include/utils/rel.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 4d73700185c..af4f53f1121 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -101,22 +101,20 @@ typedef struct RelationData Form_pg_class rd_rel; /* RELATION tuple */ TupleDesc rd_att; /* tuple descriptor */ Oid rd_id; /* relation's object id */ - List *rd_indexlist; /* list of OIDs of indexes on relation */ - Bitmapset *rd_indexattr; /* identifies columns used in indexes */ - Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */ - Bitmapset *rd_idattr; /* included in replica identity index */ - Oid rd_oidindex; /* OID of unique index on OID, if any */ LockInfoData rd_lockInfo; /* lock mgr's info for locking relation */ RuleLock *rd_rules; /* rewrite rules */ MemoryContext rd_rulescxt; /* private memory cxt for rd_rules, if any */ TriggerDesc *trigdesc; /* Trigger info, or NULL if rel has none */ - /* - * The index chosen as the relation's replication identity or InvalidOid. - * Only set correctly if RelationGetIndexList has been - * called/rd_indexvalid > 0. - */ - Oid rd_replidindex; + /* data managed by RelationGetIndexList: */ + List *rd_indexlist; /* list of OIDs of indexes on relation */ + Oid rd_oidindex; /* OID of unique index on OID, if any */ + Oid rd_replidindex; /* OID of replica identity index, if any */ + + /* data managed by RelationGetIndexAttrBitmap: */ + Bitmapset *rd_indexattr; /* identifies columns used in indexes */ + Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */ + Bitmapset *rd_idattr; /* included in replica identity index */ /* * rd_options is set whenever rd_rel is loaded into the relcache entry. |