aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-11-07 12:11:40 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-11-07 12:26:24 +0100
commitbdc4edbea6fc847f806e1e7118d730e159512bfc (patch)
treefec14c35d86d88ce9c2913f2a6d54fa26c5f635c /src/backend/utils/cache
parentb4c9695e79f79d39d55853acac4c1493ac70a529 (diff)
downloadpostgresql-bdc4edbea6fc847f806e1e7118d730e159512bfc.tar.gz
postgresql-bdc4edbea6fc847f806e1e7118d730e159512bfc.zip
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 <john.naylor@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/c7cc82d6-f976-75d6-2e3e-b03d2cab26bb@2ndquadrant.com
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r--src/backend/utils/cache/evtcache.c1
-rw-r--r--src/backend/utils/cache/relfilenodemap.c1
-rw-r--r--src/backend/utils/cache/syscache.c3
-rw-r--r--src/backend/utils/cache/ts_cache.c1
-rw-r--r--src/backend/utils/cache/typcache.c1
5 files changed, 1 insertions, 6 deletions
diff --git a/src/backend/utils/cache/evtcache.c b/src/backend/utils/cache/evtcache.c
index 73d091d1f63..04277953958 100644
--- a/src/backend/utils/cache/evtcache.c
+++ b/src/backend/utils/cache/evtcache.c
@@ -16,7 +16,6 @@
#include "access/genam.h"
#include "access/htup_details.h"
#include "access/relation.h"
-#include "catalog/indexing.h"
#include "catalog/pg_event_trigger.h"
#include "catalog/pg_type.h"
#include "commands/trigger.h"
diff --git a/src/backend/utils/cache/relfilenodemap.c b/src/backend/utils/cache/relfilenodemap.c
index 3acda32d17a..0dbdbff6037 100644
--- a/src/backend/utils/cache/relfilenodemap.c
+++ b/src/backend/utils/cache/relfilenodemap.c
@@ -16,7 +16,6 @@
#include "access/genam.h"
#include "access/htup_details.h"
#include "access/table.h"
-#include "catalog/indexing.h"
#include "catalog/pg_class.h"
#include "catalog/pg_tablespace.h"
#include "miscadmin.h"
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.)
diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c
index 1641271cfe7..f9f7912cb82 100644
--- a/src/backend/utils/cache/ts_cache.c
+++ b/src/backend/utils/cache/ts_cache.c
@@ -30,7 +30,6 @@
#include "access/htup_details.h"
#include "access/table.h"
#include "access/xact.h"
-#include "catalog/indexing.h"
#include "catalog/namespace.h"
#include "catalog/pg_ts_config.h"
#include "catalog/pg_ts_config_map.h"
diff --git a/src/backend/utils/cache/typcache.c b/src/backend/utils/cache/typcache.c
index f51248b70d0..98ab14ace2a 100644
--- a/src/backend/utils/cache/typcache.c
+++ b/src/backend/utils/cache/typcache.c
@@ -50,7 +50,6 @@
#include "access/relation.h"
#include "access/session.h"
#include "access/table.h"
-#include "catalog/indexing.h"
#include "catalog/pg_am.h"
#include "catalog/pg_constraint.h"
#include "catalog/pg_enum.h"