| From: | Andrei Lepikhov <lepihov(at)gmail(dot)com> |
|---|---|
| To: | David Geier <geidav(dot)pg(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andreas Karlsson <andreas(at)proxel(dot)se> |
| Subject: | Re: Use local buffer for packed numerics |
| Date: | 2026-11-24 08:56:00 |
| Message-ID: | 288ce915-a4d8-48f2-947d-78ea20a16fe9@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 24/11/2026 08:45, David Geier wrote:
>> I test these numeric-related patches on Intel/AMD/ARM platforms with clang/gcc.
>> For GCC, I do recommend using -mstringop-strategy=libcall. It hides the
>> performance issue in GCC 12-15.
>
> But that flag is not used by PostgreSQL upstream. So the final code
> needs to perform regardless of that flag.
>
> What exactly doesn't work with GCC 12-15? Is this documented somewhere?
Yes, it is a well-known issue. See:
1. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95556
2. https://lkml.indiana.edu/hypermail/linux/kernel/2506.1/01504.html
It is related to x86/amd & gcc only. Closed in gcc 16 (at least I don't see any
regression there).
--
regards, Andrei Lepikhov,
pgEdge
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kyotaro Horiguchi | 2026-11-24 08:58:26 | Re: Speed up binary COPY TO by not allocating 1 kB per datum |
| Previous Message | Ewan Young | 2026-11-24 08:54:33 | [PATCH] btree_gist: overflow in gbt_numeric_penalty (sibling of 15b3dc140d9) |