The CONSTROID syscache should show conrelid as a relation OID column.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 May 2008 01:46:04 +0000 (01:46 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 7 May 2008 01:46:04 +0000 (01:46 +0000)
Not clear that there's any observable bug at present from this omission,
but it seems like something to fix going forward.

src/backend/utils/cache/syscache.c

index 7ff0e8a9517a95fb92e7f21503ba749d8acf1a1b..b8b1a431f81aeaf17e16cbcbc8e7c5e3de6f0bdf 100644 (file)
@@ -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,