Hi,
We currently copy MinimalTuple twice in ExecHashSkewTableInsert() if the inputslot is not a MinimalTupleTableSlot. We can avoid this by usingExecCopySlotMinimalTupleExtra().
Patch attached.
--Regards,ChangAo Chen