pgsql: Move definition of XLogRecoveryCtlData to xlogrecovery.h - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Move definition of XLogRecoveryCtlData to xlogrecovery.h
Date
Msg-id E1vxzEO-002S63-2Q@gemulon.postgresql.org
Whole thread Raw
List 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@gmail.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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix rare instability in recovery TAP test 004_timeline_switch
Next
From: Fujii Masao
Date:
Subject: pgsql: doc: Clarify that COLUMN is optional in ALTER TABLE ... ADD/DROP