diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2016-04-07 12:08:33 +0100 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2016-04-07 12:08:33 +0100 |
commit | 015e88942aa50f0d419ddac00e63bb06d6e62e86 (patch) | |
tree | 5f8bffa51675e88ebdfb9f35ae2a62ce8dbc63d9 /src/include/utils/rel.h | |
parent | f2b1b3079ce9d2965f6e450585f24d18cdf5647b (diff) | |
download | postgresql-015e88942aa50f0d419ddac00e63bb06d6e62e86.tar.gz postgresql-015e88942aa50f0d419ddac00e63bb06d6e62e86.zip |
Load FK defs into relcache for use by planner
Fastpath ignores this if no triggers defined.
Author: Tomas Vondra, with fastpath and comments added by me
Reviewers: David Rowley, Simon Riggs
Diffstat (limited to 'src/include/utils/rel.h')
-rw-r--r-- | src/include/utils/rel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index f2bebf2c3dd..51eb27a381b 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -94,6 +94,9 @@ typedef struct RelationData Oid rd_oidindex; /* OID of unique index on OID, if any */ Oid rd_replidindex; /* OID of replica identity index, if any */ + /* data managed by RelationGetFKList: */ + List *rd_fkeylist; /* OIDs of foreign keys */ + /* data managed by RelationGetIndexAttrBitmap: */ Bitmapset *rd_indexattr; /* identifies columns used in indexes */ Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */ |