Re: Add tracking of backend memory allocated to pg_stat_activity

From: Andres Freund <andres(at)anarazel(dot)de>
To: Reid Thompson <reid(dot)thompson(at)crunchydata(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>
Subject: Re: Add tracking of backend memory allocated to pg_stat_activity
Date: 2022-11-28 18:59:09
Message-ID: 20221128185909.u4kmdiqc5sv5iez2@awork3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2022-11-26 22:10:06 -0500, Reid Thompson wrote:
> - zero allocated bytes after fork to avoid double counting postmaster allocations

I still don't understand this - postmaster shouldn't be counted at all. It
doesn't have a PgBackendStatus. There simply shouldn't be any tracked
allocations from it.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikolay Shaplov 2022-11-28 19:02:38 Re: TAP output format in pg_regress
Previous Message walther 2022-11-28 18:56:56 Re: fixing CREATEROLE