On Wed, Apr 08, 2026 at 07:04:58PM -0400, Andres Freund wrote:
> In [1] I looked at pgstat memory usage after sort of a complaint by Nathan.
> The conversion of "PgStat Shared Ref" to slab seems like an improvement we
> obviously should make [2].
>
> [...]
>
> But I think for this use case we actually have a more fitting memory context
> type for this workload, i.e. GenerationContext. With that the size after the
> same vacuum is
Nice.
> [2] It's a big enough saving that I'm kinda wondering about whether we should
> try to sneak it into 19.
I don't know whether it's appropriate to try to sneak this into v19 at this
point, but it at least seems like a "moment v20 opens for development"
thing. Should we double check there's no meaningful performance
differences? Otherwise, this seems like an easy win.
--
nathan