diff options
author | Jeff Davis <jdavis@postgresql.org> | 2020-03-18 15:39:14 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2020-03-18 15:39:14 -0700 |
commit | e00912e11a9ec2d29274ed8a6465e81385906dc2 (patch) | |
tree | 3a8cfa1201e76fe7e6129a86243abef6ca386c64 /src/backend/commands/explain.c | |
parent | 487e9861d0cf83e9100ad0d0369147db3ef4ea73 (diff) | |
download | postgresql-e00912e11a9ec2d29274ed8a6465e81385906dc2.tar.gz postgresql-e00912e11a9ec2d29274ed8a6465e81385906dc2.zip |
Specialize MemoryContextMemAllocated().
An AllocSet doubles the size of allocated blocks (up to maxBlockSize),
which means that the current block can represent half of the total
allocated space for the memory context. But the free space in the
current block may never have been touched, so don't count the
untouched memory as allocated for the purposes of
MemoryContextMemAllocated().
Discussion: https://postgr.es/m/ec63d70b668818255486a83ffadc3aec492c1f57.camel@j-davis.com
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions