Re: AIX support

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Srirama Kucherlapati <sriram(dot)rk(at)in(dot)ibm(dot)com>
Cc: Peter Eisentraut <peter(at)eisentraut(dot)org>, Aditya Kamath <Aditya(dot)Kamath1(at)ibm(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Noah Misch <noah(at)leadboat(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "hlinnaka(at)iki(dot)fi" <hlinnaka(at)iki(dot)fi>, "tristan(at)partin(dot)io" <tristan(at)partin(dot)io>, "postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com" <postgres-ibm-aix(at)wwpdl(dot)vnet(dot)ibm(dot)com>
Subject: Re: AIX support
Date: 2026-02-23 20:14:42
Message-ID: 3603369.1771877682@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> I have the AIX patches all staged here and was planning to push as
> soon as I finish polishing the commit message. I will try it on
> cfarm119 once that's done; if there are any corrections to be made
> I expect they'd be minor.

I confirmed that HEAD passes check-world on p9-aix1-postgres1
with both autoconf and meson builds; that was expected given
previous testing, but it shows I didn't mess up the final commit.

cfarm119 soon reminded me that I'd forgotten about the lgamma(NaN)
problem discussed in [1]. I'm inclined to go ahead and push the
patch shown there. Even though it's fixed in bleeding-edge AIX,
there's no reason to believe that the average AIX installation in
the field is any more up-to-date than cfarm119.

Also, reviewing the thread, I wondered why the pgstat_slru.c build
failure mentioned at [2] is not there anymore; it's not like we
did anything to that code since January. On closer investigation,
what's in unistd.h is actually

#ifdef _LARGE_FILES
#define ftruncate ftruncate64
#define truncate truncate64
#endif

and it seems that we are setting _LARGE_FILES in 32-bit builds but
not 64-bit ones. So not having that problem is an accidental
consequence of deciding not to support 32-bit AIX builds.
I wonder whether we should do something about it anyway.

regards, tom lane

[1] https://www.postgresql.org/message-id/573836.1769545598%40sss.pgh.pa.us
[2] https://www.postgresql.org/message-id/190704.1769449537%40sss.pgh.pa.us

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2026-02-23 20:16:50 Re: [PATCH] Add Windows support for backtrace_functions (MSVC only)
Previous Message Jacob Champion 2026-02-23 20:00:49 Re: PSA: Planning to grease protocol connections during 19beta