Add memory context type to pg_backend_memory_contexts view - Mailing list pgsql-hackers

From David Rowley
Subject Add memory context type to pg_backend_memory_contexts view
Date
Msg-id CAApHDvrXX1OR09Zjb5TnB0AwCKze9exZN=9Nxxg1ZCVV8W-3BA@mail.gmail.com
Whole thread Raw
Responses Re: Add memory context type to pg_backend_memory_contexts view
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Differential code coverage between 16 and HEAD
Next
From: Tom Lane
Date:
Subject: Re: Bugs in ecpg's macro mechanism