From 2076db2aea766c4c828dccc34ae35f614129000d Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 6 Nov 2014 13:52:08 +0200 Subject: 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. --- src/backend/access/gist/gistxlog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/access/gist/gistxlog.c') diff --git a/src/backend/access/gist/gistxlog.c b/src/backend/access/gist/gistxlog.c index ecc095671df..b732f532679 100644 --- a/src/backend/access/gist/gistxlog.c +++ b/src/backend/access/gist/gistxlog.c @@ -14,6 +14,7 @@ #include "postgres.h" #include "access/gist_private.h" +#include "access/xloginsert.h" #include "access/xlogutils.h" #include "utils/memutils.h" -- cgit v1.2.3