Re: Add memory context type to pg_backend_memory_contexts view

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Add memory context type to pg_backend_memory_contexts view
Дата
Msg-id CAApHDvoqeE5B4NMLCThAA5wAR4okN-BcK99AP=yxCCahhOtfyQ@mail.gmail.com
обсуждение исходный текст
Ответ на Add memory context type to pg_backend_memory_contexts view  (David Rowley <dgrowleyml@gmail.com>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: promotion related handling in pg_sync_replication_slots()
Следующее
От: jian he
Дата:
Сообщение: Re: POC: GROUP BY optimization