pgsql: Report memory context stats upon out-of-memory in repalloc[_huge

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Report memory context stats upon out-of-memory in repalloc[_huge
Date: 2016-03-13 05:21:23
Message-ID: E1aeySx-00056v-On@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Report memory context stats upon out-of-memory in repalloc[_huge].

This longstanding functionality evidently got lost in commit
3d6d1b585524aab6. Noted while studying an OOM report from Jaime
Casanova. Backpatch to 9.5 where the bug was introduced.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/a7915f114aad83c93548dffe6c947e7f441fc175

Modified Files
--------------
src/backend/utils/mmgr/mcxt.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2016-03-13 12:12:26 pgsql: Fix order of MemSet arguments
Previous Message Tom Lane 2016-03-13 03:34:55 pgsql: Fix Windows portability issue in 23a27b039d94ba35.