From bdc4edbea6fc847f806e1e7118d730e159512bfc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 7 Nov 2020 12:11:40 +0100 Subject: Move catalog index declarations Move the system catalog index declarations from catalog/indexing.h to the respective parent tables' catalog/pg_*.h files. The original reason for having it split was that the old genbki system produced the output in the order of the catalog files it read, so all the indexing stuff needed to come separately. But this is no longer the case, and keeping it together makes more sense. Reviewed-by: John Naylor Discussion: https://www.postgresql.org/message-id/flat/c7cc82d6-f976-75d6-2e3e-b03d2cab26bb@2ndquadrant.com --- src/backend/utils/cache/syscache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/backend/utils/cache/syscache.c') diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c index 53d9ddf1590..809b27a038f 100644 --- a/src/backend/utils/cache/syscache.c +++ b/src/backend/utils/cache/syscache.c @@ -22,7 +22,6 @@ #include "access/htup_details.h" #include "access/sysattr.h" -#include "catalog/indexing.h" #include "catalog/pg_aggregate.h" #include "catalog/pg_am.h" #include "catalog/pg_amop.h" @@ -97,7 +96,7 @@ 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/indexing.h: you need + 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. (Adding an index requires a catversion.h update, while simply adding/deleting caches only requires a recompile.) -- cgit v1.2.3