Skip to content

Commit

Permalink
Use PortalContext for conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
erimatnor committed Oct 20, 2024
1 parent 07ed8a7 commit 938efce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsl/src/hypercore/hypercore_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3316,9 +3316,9 @@ convert_to_hypercore(Oid relid)
return;
}

MemoryContext oldcxt = MemoryContextSwitchTo(CacheMemoryContext);
ConversionState *state = palloc0(sizeof(ConversionState));
CompressionSettings *settings = ts_compression_settings_get(hsinfo->compressed_relid);
MemoryContext oldcxt = MemoryContextSwitchTo(PortalContext);
ConversionState *state = palloc0(sizeof(ConversionState));
state->before_size = ts_relation_size_impl(relid);
state->tuplesortstate = compression_create_tuplesort_state(settings, relation);
Assert(state->tuplesortstate);
Expand Down

0 comments on commit 938efce

Please sign in to comment.