Re: Enhancing Memory Context Statistics Reporting - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Enhancing Memory Context Statistics Reporting
Date
Msg-id 2a796830-de2d-4030-b480-d673f6cc5d94@eisentraut.org
Whole thread Raw
In response to Re: Enhancing Memory Context Statistics Reporting  (Rahila Syed <rahilasyed90@gmail.com>)
Responses Re: Enhancing Memory Context Statistics Reporting
List 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()?



pgsql-hackers by date:

Previous
From: torikoshia
Date:
Subject: Re: RFC: Logging plan of the running query
Next
From: Daniel Gustafsson
Date:
Subject: Re: Enhancing Memory Context Statistics Reporting