aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgstattuple
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 /contrib/pgstattuple
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 'contrib/pgstattuple')
-rw-r--r--contrib/pgstattuple/pgstatapprox.c4
-rw-r--r--contrib/pgstattuple/pgstatindex.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/contrib/pgstattuple/pgstatapprox.c b/contrib/pgstattuple/pgstatapprox.c
index 9729d8eb1bd..4f449a26c15 100644
--- a/contrib/pgstattuple/pgstatapprox.c
+++ b/contrib/pgstattuple/pgstatapprox.c
@@ -12,9 +12,9 @@
*/
#include "postgres.h"
-#include "access/visibilitymap.h"
-#include "access/heapam.h"
+#include "access/relation.h"
#include "access/transam.h"
+#include "access/visibilitymap.h"
#include "access/xact.h"
#include "access/multixact.h"
#include "access/htup_details.h"
diff --git a/contrib/pgstattuple/pgstatindex.c b/contrib/pgstattuple/pgstatindex.c
index db396c8c4b7..2c807537266 100644
--- a/contrib/pgstattuple/pgstatindex.c
+++ b/contrib/pgstattuple/pgstatindex.c
@@ -28,10 +28,11 @@
#include "postgres.h"
#include "access/gin_private.h"
-#include "access/heapam.h"
#include "access/hash.h"
#include "access/htup_details.h"
#include "access/nbtree.h"
+#include "access/relation.h"
+#include "access/table.h"
#include "catalog/namespace.h"
#include "catalog/pg_am.h"
#include "funcapi.h"