mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
9
src/backend/utils/cache/syscache.c
vendored
9
src/backend/utils/cache/syscache.c
vendored
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* These routines allow the parser/planner/executor to perform
|
* These routines allow the parser/planner/executor to perform
|
||||||
@ -53,9 +53,8 @@
|
|||||||
|
|
||||||
Adding system caches:
|
Adding system caches:
|
||||||
|
|
||||||
Add your new cache to the list in include/utils/syscache.h. Keep
|
Add your new cache to the list in include/utils/syscache.h.
|
||||||
the list sorted alphabetically and adjust the cache numbers
|
Keep the list sorted alphabetically.
|
||||||
accordingly.
|
|
||||||
|
|
||||||
Add your entry to the cacheinfo[] array below. All cache lists are
|
Add your entry to the cacheinfo[] array below. All cache lists are
|
||||||
alphabetical, so add it in the proper place. Specify the relation OID,
|
alphabetical, so add it in the proper place. Specify the relation OID,
|
||||||
@ -307,7 +306,7 @@ static const struct cachedesc cacheinfo[] = {
|
|||||||
},
|
},
|
||||||
{ConstraintRelationId, /* CONSTROID */
|
{ConstraintRelationId, /* CONSTROID */
|
||||||
ConstraintOidIndexId,
|
ConstraintOidIndexId,
|
||||||
0,
|
Anum_pg_constraint_conrelid,
|
||||||
1,
|
1,
|
||||||
{
|
{
|
||||||
ObjectIdAttributeNumber,
|
ObjectIdAttributeNumber,
|
||||||
|
Reference in New Issue
Block a user