diff options
author | Andres Freund <andres@anarazel.de> | 2022-09-16 14:08:40 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-09-17 09:04:23 -0700 |
commit | 9d3ebba729ebaf5882a92f0f5f662a3312037605 (patch) | |
tree | f23028596e46e0bb4d1e9e95cb68d7f935e2fd05 /src/backend/executor/execProcnode.c | |
parent | fdd8937c071e85e2b7606939fb28284f008e15d1 (diff) | |
download | postgresql-9d3ebba729ebaf5882a92f0f5f662a3312037605.tar.gz postgresql-9d3ebba729ebaf5882a92f0f5f662a3312037605.zip |
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 CacheMemoryContext, so just creating them below TopMemoryContext seems
the best approach.
Reported-by: Reid Thompson <reid.thompson@crunchydata.com>
Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Author: "Drouvot, Bertrand" <bdrouvot@amazon.com>
Discussion: https://postgr.es/m/b948b729-42fe-f88c-2f4a-0e65d84c049b@amazon.com
Backpatch: 15-
Diffstat (limited to 'src/backend/executor/execProcnode.c')
0 files changed, 0 insertions, 0 deletions