From: Robert Haas Date: Thu, 12 Jun 2014 19:59:25 +0000 (-0400) Subject: Fix context reset to not corrupt the context. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=c9ca0cd8926aad240de3be54988b174538e65077;p=users%2Frhaas%2Fpostgres.git Fix context reset to not corrupt the context. --- diff --git a/src/backend/utils/mmgr/balloc.c b/src/backend/utils/mmgr/balloc.c index e2da5fad86..ce56b0c249 100644 --- a/src/backend/utils/mmgr/balloc.c +++ b/src/backend/utils/mmgr/balloc.c @@ -793,6 +793,8 @@ BlockAllocatorReset(MemoryContext context) span->npages); span = nextspan; } + relptr_store(base, heap->spans[fclass], + (BlockAllocatorSpan *) NULL); } } }