Add memory context type to pg_backend_memory_contexts view
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2024-04-16T01:30:01Z
Lists: pgsql-hackers
Attachments
- v1-0001-Add-context-type-field-to-pg_backend_memory_conte.patch (text/plain) patch v1-0001
In [1] Andres mentioned that there's no way to determine the memory context type in pg_backend_memory_contexts. This is a bit annoying as I'd like to add a test to exercise BumpStats(). Having the context type in the test's expected output helps ensure we are exercising BumpStats() and any future changes to the choice of context type in tuplesort.c gets flagged up by the test breaking. It's probably too late for PG17, but I'll leave this here for the July CF. David [1] https://www.postgresql.org/message-id/20240415225749.xg7uq2hwuq2qmwpg@awork3.anarazel.de
Commits
-
Add context type field to pg_backend_memory_contexts
- 12227a1d5f8e 18.0 landed