pgsql: Move definition of XLogRecoveryCtlData to xlogrecovery.h

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move definition of XLogRecoveryCtlData to xlogrecovery.h
Date: 2026-03-05 03:18:32
Message-ID: E1vxzEO-002S63-2Q@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move definition of XLogRecoveryCtlData to xlogrecovery.h

XLogRecoveryCtlData is the structure that stores the shared-memory state
of WAL recovery, including information such as promotion requests, the
timeline ID (TLI), and the LSNs of replayed records.

This refactoring is independently useful because it allows code outside
of core to access the recovery state in live. It will be used by an
upcoming patch that introduces a SQL function for querying this
information, that can be accessed on a standby once a consistent state
has been reached. This only moves code around, changing nothing
functionally.

Author: Xuneng Zhou <xunengzhou(at)gmail(dot)com>
Discussion: https://postgr.es/m/CABPTF7W+Nody-+P9y4PNk37-QWuLpfUrEonHuEhrX+Vx9Kq+Kw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f8124a0cf33fe421b915b57dcf04fea8b7a252c

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 66 +-----------------------------
src/include/access/xlogrecovery.h | 67 +++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+), 65 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-03-05 03:59:27 pgsql: doc: Clarify that COLUMN is optional in ALTER TABLE ... ADD/DROP
Previous Message Michael Paquier 2026-03-05 01:06:39 pgsql: Fix rare instability in recovery TAP test 004_timeline_switch