pgsql: Add context type field to pg_backend_memory_contexts

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add context type field to pg_backend_memory_contexts
Date: 2024-07-01 09:19:18
Message-ID: E1sODBt-003m8B-IU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add context type field to pg_backend_memory_contexts

Since we now (as of v17) have 4 MemoryContext types, the type of context
seems like useful information to include in the pg_backend_memory_contexts
view. Here we add that.

Reviewed-by: David Christensen, Michael Paquier
Discussion: https://postgr.es/m/CAApHDvrXX1OR09Zjb5TnB0AwCKze9exZN%3D9Nxxg1ZCVV8W-3BA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/12227a1d5f8ecad296c4204cc924d33c6a6bcd34

Modified Files
--------------
doc/src/sgml/system-views.sgml | 9 +++++++++
src/backend/utils/adt/mcxtfuncs.c | 35 +++++++++++++++++++++++++++-------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 6 +++---
src/test/regress/expected/rules.out | 3 ++-
src/test/regress/expected/sysviews.out | 16 ++++++++--------
src/test/regress/sql/sysviews.sql | 4 ++--
7 files changed, 53 insertions(+), 22 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2024-07-01 11:59:31 pgsql: Fix copy-paste mistake in PQcancelCreate
Previous Message Peter Eisentraut 2024-07-01 06:55:04 pgsql: Remove useless code