Re: [BUG + PATCH] DSA pagemap out-of-bounds in make_new_segment odd-sized path

Paul Bunn <paul.bunn@icloud.com>

From: Paul Bunn <paul.bunn@icloud.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, pgsql-hackers@postgresql.org
Date: 2026-03-06T16:22:27Z
Lists: pgsql-hackers
Thanks
I’ll be able to create the cf by Monday. Appreciate the effort and quick responses. 

On Mar 6, 2026, at 5:29 AM, Sami Imseih <samimseih@gmail.com> wrote:


> 
> See v3.

ugh, the .out file was not updated. v4 fixes that.

Paul, can you create a commitfest entry [1] for this
as a bug fix? This will need to go on all stable versions.

[1] [https://commitfest.postgresql.org/59/]

--
Sami Imseih
Amazon Web Services (AWS)
<v4-0001-Fix-DSA-pagemap-undersizing-in-make_new_segment.patch>


Commits

  1. Fix size underestimation of DSA pagemap for odd-sized segments