diff options
| author | Heikki Linnakangas | 2024-02-28 11:10:51 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2024-02-28 11:17:23 +0000 |
| commit | 0b16bb8776bb834eb1ef8204ca95dd7667ab948b (patch) | |
| tree | a06173763fba46c78613abb5b9181a88d98148e1 /src/port | |
| parent | bcdfa5f2e2f274caeed20b2f986012a9cb6a259c (diff) | |
Remove AIX support
There isn't a lot of user demand for AIX support, we have a bunch of
hacks to work around AIX-specific compiler bugs and idiosyncrasies,
and no one has stepped up to the plate to properly maintain it.
Remove support for AIX to get rid of that maintenance overhead. It's
still supported for stable versions.
The acute issue that triggered this decision was that after commit
8af2565248, the AIX buildfarm members have been hitting this
assertion:
TRAP: failed Assert("(uintptr_t) buffer == TYPEALIGN(PG_IO_ALIGN_SIZE, buffer)"), File: "md.c", Line: 472, PID: 2949728
Apperently the "pg_attribute_aligned(a)" attribute doesn't work on AIX
for values larger than PG_IO_ALIGN_SIZE, for a static const variable.
That could be worked around, but we decided to just drop the AIX support
instead.
Discussion: https://www.postgresql.org/message-id/20240224172345.32@rfd.leadboat.com
Reviewed-by: Andres Freund, Noah Misch, Thomas Munro
Diffstat (limited to 'src/port')
| -rw-r--r-- | src/port/README | 2 | ||||
| -rw-r--r-- | src/port/strerror.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/port/README b/src/port/README index 97f18a62338..ed5c54a72fa 100644 --- a/src/port/README +++ b/src/port/README @@ -28,5 +28,5 @@ applications. from libpgport are linked first. This avoids having applications dependent on symbols that are _used_ by libpq, but not intended to be exported by libpq. libpq's libpgport usage changes over time, so such a -dependency is a problem. Windows, Linux, AIX, and macOS use an export +dependency is a problem. Windows, Linux, and macOS use an export list to control the symbols exported by libpq. diff --git a/src/port/strerror.c b/src/port/strerror.c index 1070a49802e..4918ba821c1 100644 --- a/src/port/strerror.c +++ b/src/port/strerror.c @@ -214,10 +214,8 @@ get_errno_symbol(int errnum) return "ENOTCONN"; case ENOTDIR: return "ENOTDIR"; -#if defined(ENOTEMPTY) && (ENOTEMPTY != EEXIST) /* same code on AIX */ case ENOTEMPTY: return "ENOTEMPTY"; -#endif case ENOTSOCK: return "ENOTSOCK"; #ifdef ENOTSUP |
