pgsql: pgstat: Create memory contexts below TopMemoryContext

2022-09-17 Thread Andres Freund
pgstat: Create memory contexts below TopMemoryContext So far they were created below CacheMemoryContext. However, that's not guaranteed to exist in all situations, leading to memory contexts created as top-level contexts. There isn't actually a good reason anymore to create them below CacheMemoryC

pgsql: pgstat: Create memory contexts below TopMemoryContext

2022-09-17 Thread Andres Freund
pgstat: Create memory contexts below TopMemoryContext So far they were created below CacheMemoryContext. However, that's not guaranteed to exist in all situations, leading to memory contexts created as top-level contexts. There isn't actually a good reason anymore to create them below CacheMemoryC