diff options
author | Andres Freund | 2019-01-21 18:18:20 +0000 |
---|---|---|
committer | Andres Freund | 2019-01-21 18:51:37 +0000 |
commit | 111944c5ee567f1c45bf0f1ecfdec682af467aa6 (patch) | |
tree | 26874b7be80065453d8571cfd9ab0c8bf21ad7b2 /contrib | |
parent | 4b21acf522d751ba5b6679df391d5121b6c4a35f (diff) |
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/[email protected]
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/dblink/dblink.c | 3 | ||||
-rw-r--r-- | contrib/file_fdw/file_fdw.c | 2 | ||||
-rw-r--r-- | contrib/pageinspect/btreefuncs.c | 2 | ||||
-rw-r--r-- | contrib/pageinspect/heapfuncs.c | 2 | ||||
-rw-r--r-- | contrib/pageinspect/rawpage.c | 2 | ||||
-rw-r--r-- | contrib/pg_freespacemap/pg_freespacemap.c | 2 | ||||
-rw-r--r-- | contrib/pg_prewarm/autoprewarm.c | 2 | ||||
-rw-r--r-- | contrib/pg_prewarm/pg_prewarm.c | 2 | ||||
-rw-r--r-- | contrib/pgstattuple/pgstatapprox.c | 4 | ||||
-rw-r--r-- | contrib/pgstattuple/pgstatindex.c | 3 | ||||
-rw-r--r-- | contrib/postgres_fdw/deparse.c | 2 | ||||
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 2 | ||||
-rw-r--r-- | contrib/sepgsql/database.c | 2 | ||||
-rw-r--r-- | contrib/sepgsql/label.c | 2 | ||||
-rw-r--r-- | contrib/sepgsql/proc.c | 2 | ||||
-rw-r--r-- | contrib/sepgsql/relation.c | 2 | ||||
-rw-r--r-- | contrib/sepgsql/schema.c | 2 |
17 files changed, 20 insertions, 18 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 203f6fd3f01..5092aba3e42 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -37,8 +37,9 @@ #include "libpq-fe.h" #include "access/htup_details.h" +#include "access/relation.h" #include "access/reloptions.h" -#include "access/heapam.h" +#include "access/table.h" #include "catalog/indexing.h" #include "catalog/namespace.h" #include "catalog/pg_foreign_data_wrapper.h" diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index ad4da6b5ed4..9b73696e2a7 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -18,7 +18,7 @@ #include "access/htup_details.h" #include "access/reloptions.h" #include "access/sysattr.h" -#include "access/heapam.h" +#include "access/table.h" #include "catalog/pg_authid.h" #include "catalog/pg_foreign_table.h" #include "commands/copy.h" diff --git a/contrib/pageinspect/btreefuncs.c b/contrib/pageinspect/btreefuncs.c index 454e488f86a..bfa0c04c2f1 100644 --- a/contrib/pageinspect/btreefuncs.c +++ b/contrib/pageinspect/btreefuncs.c @@ -30,7 +30,7 @@ #include "pageinspect.h" #include "access/nbtree.h" -#include "access/heapam.h" +#include "access/relation.h" #include "catalog/namespace.h" #include "catalog/pg_am.h" #include "funcapi.h" diff --git a/contrib/pageinspect/heapfuncs.c b/contrib/pageinspect/heapfuncs.c index b98c4881ac5..987d576c011 100644 --- a/contrib/pageinspect/heapfuncs.c +++ b/contrib/pageinspect/heapfuncs.c @@ -27,8 +27,8 @@ #include "pageinspect.h" -#include "access/heapam.h" #include "access/htup_details.h" +#include "access/relation.h" #include "funcapi.h" #include "catalog/pg_type.h" #include "miscadmin.h" diff --git a/contrib/pageinspect/rawpage.c b/contrib/pageinspect/rawpage.c index 2d91954cb7d..03d6670d1fa 100644 --- a/contrib/pageinspect/rawpage.c +++ b/contrib/pageinspect/rawpage.c @@ -18,7 +18,7 @@ #include "pageinspect.h" #include "access/htup_details.h" -#include "access/heapam.h" +#include "access/relation.h" #include "catalog/namespace.h" #include "catalog/pg_type.h" #include "funcapi.h" diff --git a/contrib/pg_freespacemap/pg_freespacemap.c b/contrib/pg_freespacemap/pg_freespacemap.c index 5ad68005573..b82cab2d97e 100644 --- a/contrib/pg_freespacemap/pg_freespacemap.c +++ b/contrib/pg_freespacemap/pg_freespacemap.c @@ -8,7 +8,7 @@ */ #include "postgres.h" -#include "access/heapam.h" +#include "access/relation.h" #include "funcapi.h" #include "storage/freespace.h" diff --git a/contrib/pg_prewarm/autoprewarm.c b/contrib/pg_prewarm/autoprewarm.c index 45a5a26337e..9cc4b2dc837 100644 --- a/contrib/pg_prewarm/autoprewarm.c +++ b/contrib/pg_prewarm/autoprewarm.c @@ -28,7 +28,7 @@ #include <unistd.h> -#include "access/heapam.h" +#include "access/relation.h" #include "access/xact.h" #include "catalog/pg_class.h" #include "catalog/pg_type.h" diff --git a/contrib/pg_prewarm/pg_prewarm.c b/contrib/pg_prewarm/pg_prewarm.c index f789aabfc62..f3deb47a97b 100644 --- a/contrib/pg_prewarm/pg_prewarm.c +++ b/contrib/pg_prewarm/pg_prewarm.c @@ -15,7 +15,7 @@ #include <sys/stat.h> #include <unistd.h> -#include "access/heapam.h" +#include "access/relation.h" #include "fmgr.h" #include "miscadmin.h" #include "storage/bufmgr.h" 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" diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index 307c0270bb5..20982daef68 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -35,9 +35,9 @@ #include "postgres_fdw.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/pg_aggregate.h" #include "catalog/pg_collation.h" #include "catalog/pg_namespace.h" diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 685259a0033..36ae10db115 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -14,9 +14,9 @@ #include "postgres_fdw.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/pg_class.h" #include "commands/defrem.h" #include "commands/explain.h" diff --git a/contrib/sepgsql/database.c b/contrib/sepgsql/database.c index d49231a4b18..837728e07b0 100644 --- a/contrib/sepgsql/database.c +++ b/contrib/sepgsql/database.c @@ -11,9 +11,9 @@ #include "postgres.h" #include "access/genam.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/dependency.h" #include "catalog/pg_database.h" #include "catalog/indexing.h" diff --git a/contrib/sepgsql/label.c b/contrib/sepgsql/label.c index db00b481228..19bbee328e3 100644 --- a/contrib/sepgsql/label.c +++ b/contrib/sepgsql/label.c @@ -12,9 +12,9 @@ #include <selinux/label.h> -#include "access/heapam.h" #include "access/htup_details.h" #include "access/genam.h" +#include "access/table.h" #include "access/xact.h" #include "catalog/catalog.h" #include "catalog/dependency.h" diff --git a/contrib/sepgsql/proc.c b/contrib/sepgsql/proc.c index 94b9dbf6ecd..74487eda03a 100644 --- a/contrib/sepgsql/proc.c +++ b/contrib/sepgsql/proc.c @@ -11,9 +11,9 @@ #include "postgres.h" #include "access/genam.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/dependency.h" #include "catalog/indexing.h" #include "catalog/pg_namespace.h" diff --git a/contrib/sepgsql/relation.c b/contrib/sepgsql/relation.c index 42a4604f24b..12cfebecc64 100644 --- a/contrib/sepgsql/relation.c +++ b/contrib/sepgsql/relation.c @@ -11,9 +11,9 @@ #include "postgres.h" #include "access/genam.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/indexing.h" #include "catalog/dependency.h" #include "catalog/pg_attribute.h" diff --git a/contrib/sepgsql/schema.c b/contrib/sepgsql/schema.c index 19ca6fa9b0f..752cd56a86a 100644 --- a/contrib/sepgsql/schema.c +++ b/contrib/sepgsql/schema.c @@ -11,9 +11,9 @@ #include "postgres.h" #include "access/genam.h" -#include "access/heapam.h" #include "access/htup_details.h" #include "access/sysattr.h" +#include "access/table.h" #include "catalog/dependency.h" #include "catalog/indexing.h" #include "catalog/pg_database.h" |