From: Robert Haas Date: Thu, 12 Jun 2014 19:43:18 +0000 (-0400) Subject: I have a bug! X-Git-Url: http://git.postgresql.org/gitweb/static/developers.postgresql.org?a=commitdiff_plain;h=f54d3b6e0189e8fe815e33853634adb544b3ccca;p=users%2Frhaas%2Fpostgres.git I have a bug! --- diff --git a/src/backend/utils/mmgr/balloc.c b/src/backend/utils/mmgr/balloc.c index fb751a9f75..b587d9dd56 100644 --- a/src/backend/utils/mmgr/balloc.c +++ b/src/backend/utils/mmgr/balloc.c @@ -261,6 +261,10 @@ BlockAllocatorAlloc(MemoryContext context, Size size) */ if (!bcontext->private) { + /* + * XXX. This code is messed up! Surely the MemoryContext object is + * in backend-private memory... it contains pointers! + */ region = LookupAllocatorRegion(bcontext); if (region == NULL) elog(ERROR, "AllocatorRegion not found");