| From: | Tomás Senart <ts(at)perfloop(dot)ai> |
|---|---|
| To: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH v1] Avoid deforming unused trailing columns in COPY TO |
| Date: | 2026-11-30 01:29:05 |
| Message-ID: | CAEEBa3UAKJ6mPNPbBD_q4YqnDuG9UufZ_aDCCmqOtNz6gKY9Xg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Tom Lane | 2026-11-29 23:29:41 | Re: ABI Compliance Checker GSoC Project |