Re: Get memory contexts of an arbitrary backend process
Kyotaro Horiguchi <horikyota.ntt@gmail.com>
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: masao.fujii@oss.nttdata.com
Cc: torikoshia@oss.nttdata.com, pgsql-hackers@postgresql.org,
tgl@sss.pgh.pa.us, gkokolatos@protonmail.com,
kasahara.tatsuhito@gmail.com, craig@2ndquadrant.com
Date: 2021-03-26T05:08:51Z
Lists: pgsql-hackers
At Fri, 26 Mar 2021 14:02:49 +0900, Fujii Masao <masao.fujii@oss.nttdata.com> wrote in > > > On 2021/03/26 13:28, Kyotaro Horiguchi wrote: > >> "some contexts are omitted" > >> "n child contexts: total_bytes = ..." > > Sorry I missed that is already implemented. So my opnion is I agree > > with limiting with a fixed-number, and preferablly sorted in > > descending order of... totalspace/nblocks? > > This may be an improvement, but makes us modify > MemoryContextStatsInternal() > very much. I'm afraid that it's too late to do that at this stage... > What about leaving the output order as it is at the first version? So I said "preferably":p (with a misspelling...) I'm fine with that. regards. -- Kyotaro Horiguchi NTT Open Source Software Center
Commits
-
Add function to log the memory contexts of specified backend process.
- 43620e328617 14.0 landed
-
Add pg_backend_memory_contexts system view.
- 3e98c0bafb28 14.0 cited
-
Limit the verbosity of memory context statistics dumps.
- 7b5ef8f2d070 9.6.0 cited