Re: Remove support for old realpath() API

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Remove support for old realpath() API
Date: 2024-08-12 06:47:35
Message-ID: CA+hUKGLpmrr-vQHVWtMe-O=_AvS_CWWRJ+Y=UnGHd3P31S1RbQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Aug 12, 2024 at 6:18 PM Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
> On 05.08.24 09:41, Heikki Linnakangas wrote:
> > On 05/08/2024 09:12, Peter Eisentraut wrote:
> >> The now preferred way to call realpath() is by passing NULL as the
> >> second argument and get a malloc'ed result. We still supported the
> >> old way of providing our own buffer as a second argument, for some
> >> platforms that didn't support the new way yet. Those were only
> >> Solaris less than version 11 and some older AIX versions (7.1 and
> >> newer appear to support the new variant). We don't support those
> >> platforms versions anymore, so we can remove this extra code.

I checked this in the AIX 7.3 manual and the POSIX 2008 way does not
appear to be mentioned there:

https://www.ibm.com/docs/en/aix/7.3?topic=r-realpath-subroutine

That's a bit confusing, or maybe there are just too many versioning
systems to keep track of and I've made a mistake, because it looks
like AIX 7.2.5+ has actual certification for Unix V7 AKA SUSv4 AKA
POSIX 2008... Or maybe the documentation is wrong and it does
actually work. I guess the IBM crew will be forced to look into this
as they continue to work on their PostgreSQL/AIX patch, if it doesn't
work...

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2024-08-12 06:50:00 Re: Adding OLD/NEW support to RETURNING
Previous Message Peter Eisentraut 2024-08-12 06:37:01 Re: [PoC] Federated Authn/z with OAUTHBEARER