diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-11-06 13:52:08 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-11-06 13:55:36 +0200 |
commit | 2076db2aea766c4c828dccc34ae35f614129000d (patch) | |
tree | 5004b943d2014fdf3c2d4bed820fe550c5013c96 /src/include/access/nbtree.h | |
parent | d2b8a2c7ec1098e7b98160ccdc0e3a513964fb08 (diff) |
Move the backup-block logic from XLogInsert to a new file, xloginsert.c.
xlog.c is huge, this makes it a little bit smaller, which is nice. Functions
related to putting together the WAL record are in xloginsert.c, and the
lower level stuff for managing WAL buffers and such are in xlog.c.
Also move the definition of XLogRecord to a separate header file. This
causes churn in the #includes of all the files that write WAL records, and
redo routines, but it avoids pulling in xlog.h into most places.
Reviewed by Michael Paquier, Alvaro Herrera, Andres Freund and Amit Kapila.
Diffstat (limited to 'src/include/access/nbtree.h')
-rw-r--r-- | src/include/access/nbtree.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/access/nbtree.h b/src/include/access/nbtree.h index 90fd6d0056a..c8bb3f5d668 100644 --- a/src/include/access/nbtree.h +++ b/src/include/access/nbtree.h @@ -17,9 +17,10 @@ #include "access/genam.h" #include "access/itup.h" #include "access/sdir.h" -#include "access/xlog.h" -#include "access/xlogutils.h" +#include "access/xlogrecord.h" #include "catalog/pg_index.h" +#include "lib/stringinfo.h" +#include "storage/bufmgr.h" /* There's room for a 16-bit vacuum cycle ID in BTPageOpaqueData */ typedef uint16 BTCycleId; |