Re: Better shared data structure management and resizable shared data structures

From: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
To: Palak Chaturvedi <chaturvedipalak1911(at)gmail(dot)com>
Cc: Haoyu Huang <haoyu(dot)huang(dot)68(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Better shared data structure management and resizable shared data structures
Date: 2026-08-12 11:04:25
Message-ID: CAExHW5tmh1nb+9VxuK_SPEmhPVdTcM-ZimfDHoQeKtTUJzzpLQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Aug 11, 2026 at 9:37 PM Palak Chaturvedi
<chaturvedipalak1911(at)gmail(dot)com> wrote:
>
> Hi,
>
> The CF bot has been flagging the patch set as "Needs rebase" for the last day
> or so. The failure is not caused by any change on master -- v20260810-0001
> still applies cleanly on 1d1d7b0e9c9. The conflict is inside the series:
> v20260810-0003 (the smaps-walker diagnostic elog patch) was generated with
> 0001 as its parent, so it overlaps the same block in test_shmem.c that
> v20260810-0002 rewrites (the shared/private VMA check and the switch from
> int64 to long counters). Applied in order 0001 -> 0002 -> 0003, hunk #2 of
> 0003 rejects.
>
> 0003 was only meant as a temporary diagnostic to inspect /proc/self/smaps
> output while investigating the earlier 32-bit failure, and is not intended
> for commit. Dropping it removes the conflict.
>
> Attached is v20260811, just the two commits that are actually proposed for
> commit:
>
> v20260811-0001-Resizable-shared-memory-structures.patch
> v20260811-0002-test_shmem-make-resizable-shmem-tests-portable.patch
>
> Verified with `git am` on postgres/master @ 1d1d7b0e9c9; both apply cleanly
> and the test_shmem TAP suite (001_fixed_shmem_struct,
> 002_resizable_shmem_struct)
> passes locally.
>
> No code changes vs v20260810-0001 / v20260810-0002 -- the diffs are byte
> identical, only the diagnostic 0003 is dropped and the series is renumbered.

I think we should add a DEBUG elog to print the VMA line at least.
Please include it in 0002.

--
Best Wishes,
Ashutosh Bapat

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2026-08-12 11:04:56 Re: Credits For v19
Previous Message Nikhil Sontakke 2026-08-12 11:02:34 Re: Logical replication row filter loses unchanged toasted columns