summaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/syscache.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-06-29 07:57:16 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-06-29 08:08:40 +0200
commit6a6389a08b228aa6bd21ced7a9c5151bf6f7f0a2 (patch)
treef8a6ad303341e1fada0e7f22ad1ae19d2671b5d1 /src/backend/utils/cache/syscache.c
parent445e36ad4e14480a3c97d0f973a3532912424e85 (diff)
Add index OID macro argument to DECLARE_INDEX
Instead of defining symbols such as AmOidIndexId explicitly, include them as an argument of DECLARE_INDEX() and have genbki.pl generate the way as the table OID symbols from the CATALOG() declaration. Reviewed-by: John Naylor <john.naylor@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/ccef1e46-a404-25b1-9b4c-85f2c08e1f28%40enterprisedb.com
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r--src/backend/utils/cache/syscache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c
index e4dc4ee34ee..d6cb78dea8d 100644
--- a/src/backend/utils/cache/syscache.c
+++ b/src/backend/utils/cache/syscache.c
@@ -96,8 +96,8 @@
There must be a unique index underlying each syscache (ie, an index
whose key is the same as that of the cache). If there is not one
- already, add definitions for it to include/catalog/pg_*.h: you need
- to add a DECLARE_UNIQUE_INDEX macro and a #define for the index OID.
+ already, add the definition for it to include/catalog/pg_*.h using
+ DECLARE_UNIQUE_INDEX.
(Adding an index requires a catversion.h update, while simply
adding/deleting caches only requires a recompile.)