Reorganize cache memory contexts

Started by Jeff Davisabout 2 years ago3 messageshackers

Thread notes

1 note#feature#moderate#enhancement
hackorum-bot#feature#moderate#enhancement
hackorum-bot
1 day ago

@global #feature #moderate #enhancement

#feature#moderate#enhancement
Jump to latest
#1Jeff Davis
pgsql@j-davis.com

Attached is a patch that reorganizes CacheMemoryContext to be mostly a
parent context, with child contexts such as CatCacheContext,
RelCacheContext, PlanCacheContext, etc.

The goal is to better account for specific caches, which will hopefully
lead to optimizations or other improvements.

Regards,
Jeff Davis

Attachments:

t50475_1
v1-0001-Reorganize-cache-memory-contexts.patchtext/x-patch; charset=UTF-8; name=v1-0001-Reorganize-cache-memory-contexts.patchDownload+230-133
#2David Rowley
dgrowleyml@gmail.com
In reply to: Jeff Davis (#1)
Re: Reorganize cache memory contexts

On Wed, 30 Oct 2024 at 09:29, Jeff Davis <pgsql@j-davis.com> wrote:

Attached is a patch that reorganizes CacheMemoryContext to be mostly a
parent context, with child contexts such as CatCacheContext,
RelCacheContext, PlanCacheContext, etc.

Is it worth merging efforts with [1]https://commitfest.postgresql.org/50/4554/? I don't think that patch goes as
far as PlanCacheContext, but it does make the separate contexts for
catcache and relcache.

David

[1]: https://commitfest.postgresql.org/50/4554/

#3Jeff Davis
pgsql@j-davis.com
In reply to: David Rowley (#2)
Re: Reorganize cache memory contexts

On Wed, 2024-10-30 at 10:28 +1300, David Rowley wrote:

On Wed, 30 Oct 2024 at 09:29, Jeff Davis <pgsql@j-davis.com> wrote:

Attached is a patch that reorganizes CacheMemoryContext to be
mostly a
parent context, with child contexts such as CatCacheContext,
RelCacheContext, PlanCacheContext, etc.

Is it worth merging efforts with [1]?

Thank you. Yes, I'll continue in that thread and close this one.

Perhaps I did see that thread in the past and forgot about it -- even
the naming in my patch is similar.

Regards,
Jeff Davis