From: Heikki Linnakangas Date: Mon, 6 Oct 2014 10:09:08 +0000 (+0300) Subject: Move the backup-block logic from XLogInsert to a new file, xloginsert.c. X-Git-Url: http://git.postgresql.org/gitweb/static/scripts?a=commitdiff_plain;h=refs%2Fheads%2Fxloginsert-refactor3;p=users%2Fheikki%2Fpostgres.git 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. --- diff --git a/contrib/pg_xlogdump/pg_xlogdump.c b/contrib/pg_xlogdump/pg_xlogdump.c index adc9087a1d..7f151f961c 100644 --- a/contrib/pg_xlogdump/pg_xlogdump.c +++ b/contrib/pg_xlogdump/pg_xlogdump.c @@ -15,8 +15,8 @@ #include #include -#include "access/xlog.h" #include "access/xlogreader.h" +#include "access/xlogrecord.h" #include "access/transam.h" #include "common/fe_memutils.h" #include "getopt_long.h" diff --git a/doc/src/sgml/wal.sgml b/doc/src/sgml/wal.sgml index 0420610a01..2b9562639e 100644 --- a/doc/src/sgml/wal.sgml +++ b/doc/src/sgml/wal.sgml @@ -708,7 +708,7 @@ building the server). Each segment is divided into pages, normally 8 kB each (this size can be changed via the