diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-07 01:46:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-07 01:46:04 +0000 |
commit | 053948aee790099342fb8a7442c639d71624de3f (patch) | |
tree | e74fac15da4daba826b5141686d24a2614fc5a9c /src/backend/utils/cache/syscache.c | |
parent | 4136e1d06afc24b56920f09f0f94232dc2458ecf (diff) | |
download | postgresql-053948aee790099342fb8a7442c639d71624de3f.tar.gz postgresql-053948aee790099342fb8a7442c639d71624de3f.zip |
The CONSTROID syscache should show conrelid as a relation OID column.
Not clear that there's any observable bug at present from this omission,
but it seems like something to fix going forward.
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r-- | src/backend/utils/cache/syscache.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c index a1b709b15ad..f663fb48a0c 100644 --- a/src/backend/utils/cache/syscache.c +++ b/src/backend/utils/cache/syscache.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/cache/syscache.c,v 1.114 2008/01/01 19:45:53 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/cache/syscache.c,v 1.115 2008/05/07 01:46:04 tgl Exp $ * * NOTES * These routines allow the parser/planner/executor to perform @@ -53,9 +53,8 @@ Adding system caches: - Add your new cache to the list in include/utils/syscache.h. Keep - the list sorted alphabetically and adjust the cache numbers - accordingly. + Add your new cache to the list in include/utils/syscache.h. + Keep the list sorted alphabetically. Add your entry to the cacheinfo[] array below. All cache lists are alphabetical, so add it in the proper place. Specify the relation OID, @@ -307,7 +306,7 @@ static const struct cachedesc cacheinfo[] = { }, {ConstraintRelationId, /* CONSTROID */ ConstraintOidIndexId, - 0, + Anum_pg_constraint_conrelid, 1, { ObjectIdAttributeNumber, |