Re: Enhancing Memory Context Statistics Reporting

From: Rahila Syed <rahilasyed90(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: torikoshia <torikoshia(at)oss(dot)nttdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Enhancing Memory Context Statistics Reporting
Date: 2026-02-10 00:03:37
Message-ID: CAH2L28vjHHdpoDKfcLT7nt765k_1X=R4qK7etQyf_DDUg-kNoQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Please find attached rebased and updated patches that include a few fixes
suggested by Daniel.

Fixes include
1. Changed LW_SHARED to LW_EXCLUSIVE when resetting client_keys.
2. Replaced calls to MemoryContextReset with MemoryContextDelete since a
new memory context is created each time.
3. Removed leftover code from earlier versions in ipci.c
4. Fix the TAP test to compare strings correctly.
5. Added more comments in the TAP test.

Thank you,
Rahila Syed

Attachment Content-Type Size
v50-0001-Add-function-to-report-memory-context-statistics.patch application/octet-stream 59.9 KB
v50-0002-Test-module-to-test-memory-context-reporting-wit.patch application/octet-stream 9.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-02-10 00:09:57 Re: local custom injection points do not work as expected
Previous Message Jonathan S. Katz 2026-02-10 00:01:56 2026-02-12 release announcement draft