| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Backport GetWALInsertionTimeLineIfSet() |
| Date: | 2026-06-11 05:44:54 |
| Message-ID: | E1wXYDm-001xkp-1H@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2026-06-11 05:54:20 | pgsql: Disallow negative values for max_retention_duration. |
| Previous Message | Michael Paquier | 2026-06-11 05:29:48 | pgsql: xml2: Fix crash with namespace nodes in xpath_nodeset() |