agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Backport GetWALInsertionTimeLineIfSet()
Date: Thu, 11 Jun 2026 05:44:54 +0000
Message-ID: <E1wXYDm-001xkp-1H@gemulon.postgresql.org> (raw)
Backport GetWALInsertionTimeLineIfSet()
This routine is able to return the WAL insertion timeline. Contrary to
GetWALInsertionTimeLine(), this can be called before recovery is marked
as done in shared memory, just after InsertTimeLineID has been set. So
it can offer more flexibility in terms of timeline detection without
depending on RecoveryInProgress().
This routine will be used in a follow-up fix that will be applied down
to v16, and it has been introduced in 53b327f83ea2 (v17~).
Discussion: https://postgr.es/m/7daef094-abf3-4672-bc23-3df4763b16a3@gmail.com
Backpatch-through: 16
Branch
------
REL_16_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/2a04624daa32a5ada3708f488b7f787de8b8f306
Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++++++++
src/include/access/xlog.h | 1 +
2 files changed, 20 insertions(+)
Message-ID: <E1wXYDm-001xkp-1H@gemulon.postgresql.org>
Permalink: ../E1wXYDm-001xkp-1H@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1wXYDm-001xkp-1H@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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Backport GetWALInsertionTimeLineIfSet()
In-Reply-To: <E1wXYDm-001xkp-1H@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox