Re: AIX support - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: AIX support
Date
Msg-id CA+hUKGKuydrE4P=7jnn3Of1ntcrSAA+Vxd8g_KxgJAVO-fjFRQ@mail.gmail.com
Whole thread
In response to Re: AIX support  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Feb 16, 2026 at 12:35 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> * plpython probably needs work, and I'm not sure about --with-llvm.
> I can't really test either of those for lack of installed packages.

I'm willing to help look into LLVM when enough pieces have fallen into
place.  I expect it to work: LLVM's commit log is full of AIX-related
commits from @ibm.com addresses, and LLVM 21 gained AIX/ppc64 JITLink
support (the newer linking layer that we'll soon need to switch to).
I don't see the 32 bit variant, and I don't know if the older
RTDyldObjectLinkingLayer works on AIX (I'd have guessed so, but I can
also see that is has special kludges for COFF, so perhaps it'd need
something special for XCOFF too, *shrug*).

If I guessed correctly, the end goal is packaging including all
dependencies at
https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha?
 That already lists PostgreSQL 18 (with some version of these patches
applied?), but doesn't appear to have LLVM packages yet, so I guess
someone would need to address that.  I wondered about building LLVM
from source just to see what happens, but there isn't anywhere near
enough free disk space on p9-aix1-postgres1.

But that's all getting quite far ahead of the basic
AIX-port-restoration project, ie something for later...



pgsql-hackers by date:

Previous
From: Álvaro Herrera
Date:
Subject: Re: generating function default settings from pg_proc.dat
Next
From: Andres Freund
Date:
Subject: Re: BackgroundPsql swallowing errors on windows