Re: Separate memory contexts for relcache and catcache - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Separate memory contexts for relcache and catcache
Date
Msg-id 0da3b8e7f1d46883617daeb3790e27184c46a57f.camel@j-davis.com
Whole thread Raw
In response to Re: Separate memory contexts for relcache and catcache  (Melih Mutlu <m.melihmutlu@gmail.com>)
Responses Re: Separate memory contexts for relcache and catcache
List pgsql-hackers
On Wed, 2024-04-03 at 16:12 +0300, Melih Mutlu wrote:
> Rebased. PSA.

Thank you. I missed your patch and came up with a similar patch over
here:

https://www.postgresql.org/message-id/flat/78599c442380ddb5990117e281a4fa65a74231af.camel@j-davis.com

I closed my thread and we can continue this one.

One difference is that I tried to capture almost all uses of
CacheMemoryContext so that it would become just a parent context
without many allocations of its own.

The plan cache and SPI caches can be important, too. Or, one of the
other caches that we expect to be small might grow in some edge cases
(or due to a bug), and it would be good to be able to see that.

I agree with others that we should look at changing the initial size or
type of the contexts, but that should be a separate commit.

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Reorganize cache memory contexts
Next
From: Jim Nasby
Date:
Subject: Re: Vacuum statistics