RE: AIX support

From: Srirama Kucherlapati <sriram(dot)rk(at)in(dot)ibm(dot)com>
To: Aditya Kamath <Aditya(dot)Kamath1(at)ibm(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: 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>, "peter(at)eisentraut(dot)org" <peter(at)eisentraut(dot)org>, "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-03 16:03:37
Message-ID: SJ4PPFB81778326209116AF41FE9A24FC77DB9BA@SJ4PPFB81778326.namprd15.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom and community team,

Please find the attached, patch to enable the PostgreSQL project to build
successfully on AIX using GNU.

Patch(0001-Support-for-AIX-GNU-build.pg19.v12.patch)

1. PostgreSQL support on AIX begins with OS level 7.2, and is available only
when using GCC in 64‑bit mode.
2. Since AIX defaults to 32‑bit compilation, the AIX-specific template applies
the -maix64 flag to cflags, cppflags, cxxflags, and ldflags to enforce 64‑bit
builds.
3. The linker configuration ensures that only 64‑bit libraries are produced by
default.
4. This patch has to be applied on top of, [1] changes related to MAXALIGN, and
then [2] AIX meson changes.
5. To build the patch
# export AR='/usr/bin/ar -X64’
# ./configure
# gmake

[1] https://www.postgresql.org/message-id/flat/1127261(dot)1769649624(at)sss(dot)pgh(dot)pa(dot)us
[2] https://www.postgresql.org/message-id/attachment/189570/v4-0001-Add-AIX-support-for-Postgresql-using-meson-build-.patch

Kindly let us know your feedback on the patch.

Thank you once again for all your guidance and support during this process.

Warm regards,

Sriram.

Attachment Content-Type Size
0001-Support-for-AIX-GNU-build.pg19.v12.patch application/octet-stream 10.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mircea Cadariu 2026-02-03 16:05:40 Re: Propagate XLogFindNextRecord error to callers
Previous Message Matthias van de Meent 2026-02-03 16:01:39 Re: New access method for b-tree.