aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/memutils.h
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2019-10-05 20:49:39 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2019-10-05 20:49:39 +0200
commit36425ece5d6c78177cdc1453a9925a0bb85da59f (patch)
tree57fd79f7b0c3a73364fe81cb2bea698a9de16875 /src/include/utils/memutils.h
parente800bd7414df3ce8170761e5b75b13e83f576988 (diff)
downloadpostgresql-36425ece5d6c78177cdc1453a9925a0bb85da59f.tar.gz
postgresql-36425ece5d6c78177cdc1453a9925a0bb85da59f.zip
Change MemoryContextMemAllocated to return Size
Commit f2369bc610 switched most of the memory accounting from int64 to Size, but it forgot to change the MemoryContextMemAllocated return type. So this fixes that omission. Discussion: https://www.postgresql.org/message-id/11238.1570200198%40sss.pgh.pa.us
Diffstat (limited to 'src/include/utils/memutils.h')
-rw-r--r--src/include/utils/memutils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/utils/memutils.h b/src/include/utils/memutils.h
index 6a837bc9902..106c83da45f 100644
--- a/src/include/utils/memutils.h
+++ b/src/include/utils/memutils.h
@@ -82,7 +82,7 @@ extern void MemoryContextSetParent(MemoryContext context,
extern Size GetMemoryChunkSpace(void *pointer);
extern MemoryContext MemoryContextGetParent(MemoryContext context);
extern bool MemoryContextIsEmpty(MemoryContext context);
-extern int64 MemoryContextMemAllocated(MemoryContext context, bool recurse);
+extern Size MemoryContextMemAllocated(MemoryContext context, bool recurse);
extern void MemoryContextStats(MemoryContext context);
extern void MemoryContextStatsDetail(MemoryContext context, int max_children);
extern void MemoryContextAllowInCriticalSection(MemoryContext context,