pgsql: Change MemoryContextMemAllocated to return Size

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Change MemoryContextMemAllocated to return Size
Date: 2019-10-05 18:53:54
Message-ID: E1iGpBi-00021c-Ct@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2019-10-05 19:07:29 expressive test macros (was: Report test_atomic_ops() failures consistently, via macros)
Previous Message Noah Misch 2019-10-05 17:08:38 pgsql: Report test_atomic_ops() failures consistently, via macros.