Re: Improving and extending int128.h to more of numeric.c - Mailing list pgsql-hackers

From Dean Rasheed
Subject Re: Improving and extending int128.h to more of numeric.c
Date
Msg-id CAEZATCUGzWRfM9o75HQjQ1Yp-N89VNr4706mekyUa1cWuht7yw@mail.gmail.com
Whole thread Raw
In response to Re: Improving and extending int128.h to more of numeric.c  (Andres Freund <andres@anarazel.de>)
Responses Re: Improving and extending int128.h to more of numeric.c
List pgsql-hackers
On Fri, 24 Oct 2025 at 15:23, Andres Freund <andres@anarazel.de> wrote:
>
> FWIW, there are a few interesting messages on the host of my buildfarm animal:
>
> Aug 19 02:05:31 andres-postgres-buildfarm-v6 kernel: traps: test_int128[1678696] trap divide error ip:55764d59802c
sp:7fffc378f7f8error:0 in test_int128[402c,55764d595000+4000]
 
> Oct 15 03:08:28 andres-postgres-buildfarm-v6 kernel: traps: test_int128[1984641] trap divide error ip:405a8c
sp:7ffc41a93c88error:0 in test_int128[5a8c,401000+5000]
 
> Oct 15 20:02:15 andres-postgres-buildfarm-v6 kernel: traps: test_int128[3346617] trap divide error ip:404b4c
sp:7ffc709ab658error:0 in test_int128[4b4c,401000+4000]
 
>

Ah, I presume this is because there is a small, but non-zero chance
that the test code will attempt to divide by zero, so it needs to make
sure that z32 is non-zero. Will fix.

Regards,
Dean



pgsql-hackers by date:

Previous
From: Viktor Holmberg
Date:
Subject: Re: Docs and tests for RLS policies applied by command type
Next
From: Bryan Green
Date:
Subject: [PATCH] Add pg_get_role_ddl() functions for role recreation