On Thu, Jan 25, 2024 at 8:51 AM Kirk Wolak <wolakk(at)gmail(dot)com> wrote:> getrusage(RUSAGE_SELF, &usage);> memory_usage_bytes = usage.ru_maxrss * 1024;
FWIW log_statement_stats = on shows that in the logs. See ShowUsage()in postgres.c.