pgsql: Work around lgamma(NaN) bug on AIX.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Work around lgamma(NaN) bug on AIX.
Date: 2026-02-23 20:30:56
Message-ID: E1vuca0-000sLh-2x@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Work around lgamma(NaN) bug on AIX.

lgamma(NaN) should produce NaN, but on older versions of AIX
it reports an ERANGE error. While that's been fixed in the latest
version of libm, it'll take awhile for the fix to propagate. This
workaround is harmless even when the underlying bug does get fixed.

Discussion: https://postgr.es/m/3603369.1771877682@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d743545d8471dbb0016313885392211f58ef2b1c

Modified Files
--------------
src/backend/utils/adt/float.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-02-23 20:57:04 pgsql: Allow pg_{read,write}_all_data to access large objects.
Previous Message Peter Eisentraut 2026-02-23 20:26:10 pgsql: Use LOCKMODE in parse_relation.c/.h