Re: Enhancing Memory Context Statistics Reporting

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Rahila Syed <rahilasyed90(at)gmail(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Enhancing Memory Context Statistics Reporting
Date: 2025-04-30 10:14:26
Message-ID: 2a796830-de2d-4030-b480-d673f6cc5d94@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 29.04.25 15:13, Rahila Syed wrote:
> Please find attached a patch with some comments and documentation changes.
> Additionaly, added a missing '\0' termination to "Remaining Totals" string.
> I think this became necessary after we replaced dsa_allocate0()
> with dsa_allocate() is the latest version.

> strncpy(nameptr, "Remaining Totals", namelen);
> + nameptr[namelen] = '\0';

Looks like a case for strlcpy()?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2025-04-30 10:43:24 Re: Enhancing Memory Context Statistics Reporting
Previous Message torikoshia 2025-04-30 09:53:40 Re: RFC: Logging plan of the running query