Re: Get memory contexts of an arbitrary backend process
torikoshia <torikoshia@oss.nttdata.com>
From: torikoshia <torikoshia@oss.nttdata.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>,
pgsql-hackers@postgresql.org, tgl@sss.pgh.pa.us, gkokolatos@protonmail.com,
kasahara.tatsuhito@gmail.com, craig@2ndquadrant.com
Date: 2021-04-05T02:55:47Z
Lists: pgsql-hackers
Attachments
- v9-0001-add-memorycontext-elog-print.patch (text/x-diff) patch v9-0001
On 2021-04-01 19:13, Fujii Masao wrote: > On 2021/03/31 15:16, Kyotaro Horiguchi wrote: >>> + The memory contexts will be logged based on the log configuration >>> set. For example: >>> >>> How do you think? >> >> How about "The memory contexts will be logged in the server log" ? >> I think "server log" doesn't suggest any concrete target. > > Or just using "logged" is enough? > > Also I'd like to document that one message for each memory context is > logged. > So what about the following? > > One message for each memory context will be logged. For example, Agreed. BTW, there was a conflict since c30f54ad732(Detect POLLHUP/POLLRDHUP while running queries), attached v9. Regards,
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