Content-Length: 375475 | pFad | http://github.com/postgrespro/postgres/commit/70e81861fadd9112fa2d425c762e163910a4ee52

17 Split xlog.c into xlog.c and xlogrecovery.c. · postgrespro/postgres@70e8186 · GitHub
Skip to content

Commit 70e8186

Browse files
committed
Split xlog.c into xlog.c and xlogrecovery.c.
This moves the functions related to performing WAL recovery into the new xlogrecovery.c source file, leaving xlog.c responsible for maintaining the WAL buffers, coordinating the startup and switch from recovery to normal operations, and other miscellaneous stuff that have always been in xlog.c. Reviewed-by: Andres Freund, Kyotaro Horiguchi, Robert Haas Discussion: https://www.postgresql.org/message-id/a31f27b4-a31d-f976-6217-2b03be646ffa%40iki.fi
1 parent be1c00a commit 70e8186

File tree

22 files changed

+4982
-4449
lines changed

22 files changed

+4982
-4449
lines changed

contrib/pg_prewarm/autoprewarm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "postmaster/interrupt.h"
3939
#include "storage/buf_internals.h"
4040
#include "storage/dsm.h"
41+
#include "storage/fd.h"
4142
#include "storage/ipc.h"
4243
#include "storage/latch.h"
4344
#include "storage/lwlock.h"

src/backend/access/transam/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ OBJS = \
3232
xlogfuncs.o \
3333
xloginsert.o \
3434
xlogreader.o \
35+
xlogrecovery.o \
3536
xlogutils.o
3637

3738
include $(top_srcdir)/src/backend/common.mk

src/backend/access/transam/xact.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "access/xact.h"
3030
#include "access/xlog.h"
3131
#include "access/xloginsert.h"
32+
#include "access/xlogrecovery.h"
3233
#include "access/xlogutils.h"
3334
#include "catalog/index.h"
3435
#include "catalog/namespace.h"

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/70e81861fadd9112fa2d425c762e163910a4ee52

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy