Avoid copying MinimalTuple twice in ExecHashSkewTableInsert()

From: cca5507 <cca5507(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Avoid copying MinimalTuple twice in ExecHashSkewTableInsert()
Date: 2026-11-18 14:56:45
Message-ID: tencent_8D76D4A175856DB575291632787838076808@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

We currently copy MinimalTuple twice in ExecHashSkewTableInsert() if the input
slot is not a MinimalTupleTableSlot. We can avoid this by using
ExecCopySlotMinimalTupleExtra().

Patch attached.

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v1-0001-Avoid-copying-MinimalTuple-twice-in-ExecHashSkewT.patch application/octet-stream 1.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Maxim Orlov 2026-11-18 15:03:00 Re: Report oldest xmin source when autovacuum cannot remove tuples
Previous Message He Kuang 2026-11-18 14:50:36 [PATCH v2] Estimate hash join bucket size from the joint ndistinct of the hash keys