| From: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
|---|---|
| To: | Tomás Senart <ts(at)perfloop(dot)ai> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH v1] Avoid deforming unused trailing columns in COPY TO |
| Date: | 2026-12-01 00:19:58 |
| Message-ID: | 615DE291-C199-452E-8FF5-ECAF5E836044@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On Nov 30, 2026, at 09:29, Tomás Senart <ts(at)perfloop(dot)ai> wrote:
>
> On Thu, Nov 19, 2026 at 2:44 AM Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>> V2 looks good to me.
>>
>> I just ran a simple performance test on my MacBook M4 with a 50-column table containing 1 million rows, copying the first 3 columns, middle 3 columns, and last 3 columns. The test shows some improvements:
>> ```
>> Master (091b2926044) v2
>> First 3 columns 155ms 133ms
>> Middle 3 columns 156ms 140ms
>> Last 3 columns 157ms 159ms
>> ```
>>
>> The durations shown in the table are averages from multiple runs. The tests were run with builds that had assertions and debugging disabled.
>>
>> We can see that copying the first 3 columns and middle 3 columns shows a noticeable performance improvement. When copying the last 3 columns, there is little difference before and after the patch.
>>
>> I ran the tests with builds disabling asserts and debug.
>>
>> Best regards,
>> --
>> Chao Li (Evan)
>> HighGo Software Co., Ltd.
>> https://www.highgo.com/
>
> Hi Chao,
>
> Thanks for testing v2 and for the numbers.
>
> I have registered the patch for the January CommitFest:
> https://commitfest.postgresql.org/patch/7679/
>
> Feel free to add yourself as a reviewer there. If you think it is ready,
> you can also mark it Ready for Committer.
>
> Regards,
> Tomás
Marked it as RFC.
Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | wenhui qiu | 2026-12-01 00:41:12 | Re: Simplify the uniqueness proof for self-join elimination |
| Previous Message | Laurenz Albe | 2026-12-01 00:09:33 | Re: passwordcheck: Make the user name check case-insensitive |