pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split xlog.c into xlog.c and xlogrecovery.c.
Date: Wed, 16 Feb 2022 07:51:19 +0000
Message-ID: <E1nKF5r-0003aK-3k@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/70e81861fadd9112fa2d425c762e163910a4ee52

Modified Files
--------------
contrib/pg_prewarm/autoprewarm.c               |    1 +
src/backend/access/transam/Makefile            |    1 +
src/backend/access/transam/xact.c              |    1 +
src/backend/access/transam/xlog.c              | 4623 ++----------------------
src/backend/access/transam/xlogfuncs.c         |    2 +-
src/backend/access/transam/xlogrecovery.c      | 4537 +++++++++++++++++++++++
src/backend/access/transam/xlogutils.c         |    6 +-
src/backend/postmaster/checkpointer.c          |    1 +
src/backend/postmaster/postmaster.c            |    1 +
src/backend/postmaster/startup.c               |    1 +
src/backend/replication/logical/logicalfuncs.c |    1 +
src/backend/replication/slotfuncs.c            |    1 +
src/backend/replication/walreceiver.c          |    1 +
src/backend/replication/walreceiverfuncs.c     |    1 +
src/backend/replication/walsender.c            |    1 +
src/backend/storage/ipc/ipci.c                 |    3 +
src/backend/storage/ipc/standby.c              |    1 +
src/backend/storage/sync/sync.c                |    1 +
src/backend/utils/misc/guc.c                   |    1 +
src/include/access/xlog.h                      |   87 +-
src/include/access/xlogrecovery.h              |  157 +
src/tools/pgindent/typedefs.list               |    2 +
22 files changed, 4982 insertions(+), 4449 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1nKF5r-0003aK-3k@gemulon.postgresql.org>
Permalink:  ../E1nKF5r-0003aK-3k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nKF5r-0003aK-3k@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Split xlog.c into xlog.c and xlogrecovery.c.
  In-Reply-To: <E1nKF5r-0003aK-3k@gemulon.postgresql.org>
  References: <E1nKF5r-0003aK-3k@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox