Re: Add tracking of backend memory allocated to pg_stat_activity - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Add tracking of backend memory allocated to pg_stat_activity
Date
Msg-id 20221128185909.u4kmdiqc5sv5iez2@awork3.anarazel.de
Whole thread Raw
In response to Re: Add tracking of backend memory allocated to pg_stat_activity  (Reid Thompson <reid.thompson@crunchydata.com>)
Responses Re: Add tracking of backend memory allocated to pg_stat_activity
List 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



pgsql-hackers by date:

Previous
From: walther@technowledgy.de
Date:
Subject: Re: fixing CREATEROLE
Next
From: Nikolay Shaplov
Date:
Subject: Re: TAP output format in pg_regress