From cee850c403c9dde121dde042334554167f79d989 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 22 Apr 2014 22:21:54 -0400 Subject: [PATCH] revert 4d0d607a454ee832574afd52a3c515099cc85eb3 Revert due to contrib/test_decoding regression failure --- src/backend/access/heap/rewriteheap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/access/heap/rewriteheap.c b/src/backend/access/heap/rewriteheap.c index ae439e8d6f..4cf07eaa2e 100644 --- a/src/backend/access/heap/rewriteheap.c +++ b/src/backend/access/heap/rewriteheap.c @@ -897,7 +897,7 @@ logical_heap_rewrite_flush_mappings(RewriteState state) /* write all mappings consecutively */ len = src->num_mappings * sizeof(LogicalRewriteMappingData); - waldata = MemoryContextAlloc(state->rs_cxt, len); + waldata = palloc(len); waldata_start = waldata; /* @@ -943,7 +943,6 @@ logical_heap_rewrite_flush_mappings(RewriteState state) /* write xlog record */ XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata); - pfree(waldata); } Assert(state->rs_num_rewrite_mappings == 0); } -- 2.40.0