summaryrefslogtreecommitdiff
path: root/src/include/commands
diff options
context:
space:
mode:
authorHeikki Linnakangas2014-11-06 11:52:08 +0000
committerHeikki Linnakangas2014-11-06 11:55:36 +0000
commit2076db2aea766c4c828dccc34ae35f614129000d (patch)
tree5004b943d2014fdf3c2d4bed820fe550c5013c96 /src/include/commands
parentd2b8a2c7ec1098e7b98160ccdc0e3a513964fb08 (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/commands')
-rw-r--r--src/include/commands/dbcommands.h3
-rw-r--r--src/include/commands/sequence.h3
-rw-r--r--src/include/commands/tablespace.h3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h
index 811713fb83..b79d9fc864 100644
--- a/src/include/commands/dbcommands.h
+++ b/src/include/commands/dbcommands.h
@@ -14,7 +14,8 @@
#ifndef DBCOMMANDS_H
#define DBCOMMANDS_H
-#include "access/xlog.h"
+#include "access/xlogrecord.h"
+#include "lib/stringinfo.h"
#include "nodes/parsenodes.h"
/* XLOG stuff */
diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h
index 914d155c9f..7cbe6f9a81 100644
--- a/src/include/commands/sequence.h
+++ b/src/include/commands/sequence.h
@@ -13,8 +13,9 @@
#ifndef SEQUENCE_H
#define SEQUENCE_H
-#include "access/xlog.h"
+#include "access/xlogrecord.h"
#include "fmgr.h"
+#include "lib/stringinfo.h"
#include "nodes/parsenodes.h"
#include "storage/relfilenode.h"
diff --git a/src/include/commands/tablespace.h b/src/include/commands/tablespace.h
index 0f16f40e3d..afd9e05cb7 100644
--- a/src/include/commands/tablespace.h
+++ b/src/include/commands/tablespace.h
@@ -14,7 +14,8 @@
#ifndef TABLESPACE_H
#define TABLESPACE_H
-#include "access/xlog.h"
+#include "access/xlogrecord.h"
+#include "lib/stringinfo.h"
#include "nodes/parsenodes.h"
/* XLOG stuff */