diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-28 19:02:00 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-08-28 19:02:00 -0400 |
commit | 21c09e99dc252269360bd146afee9481fa80abbc (patch) | |
tree | 2f270759f02364279eeeda38c46283ca6b63a3d1 /src/backend/access/heap | |
parent | fda0594fc2f4c98ee50ea02fa196ca51db81ea70 (diff) | |
download | postgresql-21c09e99dc252269360bd146afee9481fa80abbc.tar.gz postgresql-21c09e99dc252269360bd146afee9481fa80abbc.zip |
Split heapam_xlog.h from heapam.h
The heapam XLog functions are used by other modules, not all of which
are interested in the rest of the heapam API. With this, we let them
get just the XLog stuff in which they are interested and not pollute
them with unrelated includes.
Also, since heapam.h no longer requires xlog.h, many files that do
include heapam.h no longer get xlog.h automatically, including a few
headers. This is useful because heapam.h is getting pulled in by
execnodes.h, which is in turn included by a lot of files.
Diffstat (limited to 'src/backend/access/heap')
-rw-r--r-- | src/backend/access/heap/heapam.c | 1 | ||||
-rw-r--r-- | src/backend/access/heap/pruneheap.c | 1 | ||||
-rw-r--r-- | src/backend/access/heap/rewriteheap.c | 1 | ||||
-rw-r--r-- | src/backend/access/heap/visibilitymap.c | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index f28026be0fb..f56b5774eec 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -41,6 +41,7 @@ #include "postgres.h" #include "access/heapam.h" +#include "access/heapam_xlog.h" #include "access/hio.h" #include "access/multixact.h" #include "access/relscan.h" diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index a89ef077ce8..e0209c9aeaf 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -15,6 +15,7 @@ #include "postgres.h" #include "access/heapam.h" +#include "access/heapam_xlog.h" #include "access/transam.h" #include "miscadmin.h" #include "pgstat.h" diff --git a/src/backend/access/heap/rewriteheap.c b/src/backend/access/heap/rewriteheap.c index 9a8f05d9331..0f67a807be2 100644 --- a/src/backend/access/heap/rewriteheap.c +++ b/src/backend/access/heap/rewriteheap.c @@ -103,6 +103,7 @@ #include "postgres.h" #include "access/heapam.h" +#include "access/heapam_xlog.h" #include "access/rewriteheap.h" #include "access/transam.h" #include "access/tuptoaster.h" diff --git a/src/backend/access/heap/visibilitymap.c b/src/backend/access/heap/visibilitymap.c index eb5625906f1..d7a291640e9 100644 --- a/src/backend/access/heap/visibilitymap.c +++ b/src/backend/access/heap/visibilitymap.c @@ -82,7 +82,7 @@ */ #include "postgres.h" -#include "access/heapam.h" +#include "access/heapam_xlog.h" #include "access/visibilitymap.h" #include "miscadmin.h" #include "storage/bufmgr.h" |