pgsql: Change MemoryContextMemAllocated to return Size - Mailing list pgsql-committers

From Tomas Vondra
Subject pgsql: Change MemoryContextMemAllocated to return Size
Date
Msg-id E1iGpBi-00021c-Ct@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36425ece5d6c78177cdc1453a9925a0bb85da59f

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 4 ++--
src/include/utils/memutils.h  | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Report test_atomic_ops() failures consistently, via macros.
Next
From: Tom Lane
Date:
Subject: pgsql: Avoid trying to release a List's initial allocation via repalloc