Re: Patch to address creation of PgStat* contexts with null parent context
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: reid.thompson@crunchydata.com
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-08-05T08:40:01Z
Lists: pgsql-hackers
At Fri, 05 Aug 2022 17:22:38 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in > Thus I thought that we may let pgstat_initialize() promptly allocate > the memory. > > Does it make sense? > > > About the patch, I had something like the attached in my mind. I haven't fully checked, but this change might cause all other calls to CreateCacheMemoryContext useless. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
pgstat: Create memory contexts below TopMemoryContext
- fb503793ef50 15.0 landed
- 9d3ebba729eb 16.0 landed