We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2362c2b commit cee850cCopy full SHA for cee850c
src/backend/access/heap/rewriteheap.c
@@ -897,7 +897,7 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
897
898
/* write all mappings consecutively */
899
len = src->num_mappings * sizeof(LogicalRewriteMappingData);
900
- waldata = MemoryContextAlloc(state->rs_cxt, len);
+ waldata = palloc(len);
901
waldata_start = waldata;
902
903
/*
@@ -943,7 +943,6 @@ logical_heap_rewrite_flush_mappings(RewriteState state)
943
/* write xlog record */
944
XLogInsert(RM_HEAP2_ID, XLOG_HEAP2_REWRITE, rdata);
945
946
- pfree(waldata);
947
}
948
Assert(state->rs_num_rewrite_mappings == 0);
949
0 commit comments