| 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 14:36:12 |
| Message-ID: | 9f316d3d-de1e-4f05-8653-19acd69126a5@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 20/11/2026 09:14, David Geier wrote:
> I also attached the patch that shows the idea of having all functions go
> via init_var_from_num() and having all "parsing" code happen there in a
> single place, only called once per function.
Hi David,
CFBot picked up your patch as the latest patch set for this CF entry [1], and it
now fails on all platforms in the numeric regression test.
The cause I hope is a slip in cmp_numerics(), in the PINF branch:
- else if (var2.sign == NUMERIC_POS)
+ else if (var2.sign == NUMERIC_PINF)
result = 0; /* PINF = PINF */
To keep this entry focused on the local-buffer approach, I'm re-attaching my
patches as v2. They're the same as v0, just rebased onto current master.
Since the no-unpacking direction is a separate piece of work, could you name
experimental patches in this thread with a .txt or .no-cfbot suffix, so CFBot
doesn't pick them up? If you plan to develop that idea further, it might be
worth its own thread and CF entry - just add me in CC.
[1] https://commitfest.postgresql.org/patch/7662/
--
regards, Andrei Lepikhov,
pgEdge
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Unpack-short-numerics-on-the-local-buffer.patch | text/plain | 8.8 KB |
| v2-0002-Unpack-short-numerics-on-the-stack-in-the-remaini.patch | text/plain | 9.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-11-24 14:39:17 | Re: Ensure temporary files are unlinked on errors in pg_receivewal |
| Previous Message | Jim Jones | 2026-11-24 14:34:25 | Add CHECK_FOR_INTERRUPTS() to XPath result serialisation |