[PATCH] Share WAL summary filtering logic

From: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Subject: [PATCH] Share WAL summary filtering logic
Date: 2026-11-26 06:21:23
Message-ID: CAJTYsWVzUfHYSfeG1xXzSnqTpAgKNjDEe+Y9brACP1XeNuBBqA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In the thread about incremental backups after a timeline switch [1],
Fujii-san suggested sharing the filtering logic between GetWalSummaries()
and FilterWalSummaries() for v20.

Since f549ecd2660, both functions make the same timeline and LSN checks.
The attached patch puts those checks in one place (atleast it will make
sure we do not diverge again).

Thoughts?

[1]
https://postgr.es/m/CAHGQGwHgE=cC6K-jQzD4EtE5n_GPSGFOt3G3JAEiZggAyA1jTA@mail.gmail.com

Regards,
Ayush

Attachment Content-Type Size
v1-0001-Share-WAL-summary-filtering-logic.patch application/octet-stream 3.9 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2026-11-26 06:27:18 Re: [PATCH] Fix plpgsql's R/W optimization for simple expressions run via SPI
Previous Message Rahila Syed 2026-11-26 05:57:33 Re: Stale hash entries when reusing an auxiliary resource owner