aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2019-01-21 10:18:20 -0800
committerAndres Freund <andres@anarazel.de>2019-01-21 10:51:37 -0800
commit111944c5ee567f1c45bf0f1ecfdec682af467aa6 (patch)
tree26874b7be80065453d8571cfd9ab0c8bf21ad7b2 /src/backend/access
parent4b21acf522d751ba5b6679df391d5121b6c4a35f (diff)
downloadpostgresql-111944c5ee567f1c45bf0f1ecfdec682af467aa6.tar.gz
postgresql-111944c5ee567f1c45bf0f1ecfdec682af467aa6.zip
Replace heapam.h includes with {table, relation}.h where applicable.
A lot of files only included heapam.h for relation_open, heap_open etc - replace the heapam.h include in those files with the narrower header. Author: Andres Freund Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/brin/brin.c3
-rw-r--r--src/backend/access/hash/hashinsert.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c
index 52144271c1c..34f82d46821 100644
--- a/src/backend/access/brin/brin.c
+++ b/src/backend/access/brin/brin.c
@@ -19,9 +19,10 @@
#include "access/brin_page.h"
#include "access/brin_pageops.h"
#include "access/brin_xlog.h"
-#include "access/heapam.h"
+#include "access/relation.h"
#include "access/reloptions.h"
#include "access/relscan.h"
+#include "access/table.h"
#include "access/xloginsert.h"
#include "catalog/index.h"
#include "catalog/pg_am.h"
diff --git a/src/backend/access/hash/hashinsert.c b/src/backend/access/hash/hashinsert.c
index eecd89080e1..970733f0cd4 100644
--- a/src/backend/access/hash/hashinsert.c
+++ b/src/backend/access/hash/hashinsert.c
@@ -17,7 +17,6 @@
#include "access/hash.h"
#include "access/hash_xlog.h"
-#include "access/heapam.h"
#include "miscadmin.h"
#include "utils/rel.h"
#include "storage/lwlock.h"