Re: Shmem allocated wrong for custom cumulative stats

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2026-04-06T02:36:21Z
Lists: pgsql-hackers
On Mon, Apr 06, 2026 at 09:55:14AM +0900, Michael Paquier wrote:
> Right, down to v18 where this has been introduced.  That's my bug, so
> I'd be OK to take care of it myself, if you are OK with that of
> course.

Note: something is wrong with -m32, for both patches.  Digging into
that..
--
Michael

Commits

  1. Fix shmem allocation of fixed-sized custom stats kind

  2. Fix shared memory size of template code for custom fixed-sized pgstats