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

From David Rowley
Subject Re: Add memory context type to pg_backend_memory_contexts view
Date
Msg-id CAApHDvoqeE5B4NMLCThAA5wAR4okN-BcK99AP=yxCCahhOtfyQ@mail.gmail.com
Whole thread Raw
In response to Add memory context type to pg_backend_memory_contexts view  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Add memory context type to pg_backend_memory_contexts view
List pgsql-hackers
On Tue, 16 Apr 2024 at 13:30, David Rowley <dgrowleyml@gmail.com> wrote:
> 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.

bea97cd02 added a new regression test in sysviews.sql to call
pg_backend_memory_contexts to test the BumpStats() function.

The attached updates the v1 patch to add the new type column to the
new call to pg_backend_memory_contexts() to ensure the type = "Bump"

No other changes.

David

Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: promotion related handling in pg_sync_replication_slots()
Next
From: jian he
Date:
Subject: Re: POC: GROUP BY optimization