Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdW9Z-00GJNt-MT for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 14:36:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sdW9Y-00GG9O-59 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 14:36:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdW9X-00GG9G-R9 for pgsql-hackers@lists.postgresql.org; Mon, 12 Aug 2024 14:36:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdW9S-004TNe-9t for pgsql-hackers@postgresql.org; Mon, 12 Aug 2024 14:36:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 47CEZmYB491005; Mon, 12 Aug 2024 10:35:48 -0400 From: Tom Lane To: Thomas Munro cc: Peter Eisentraut , Heikki Linnakangas , pgsql-hackers Subject: Re: Remove support for old realpath() API In-reply-to: <487080.1723471518@sss.pgh.pa.us> References: <9e638b49-5c3f-470f-a392-2cbedb2f7855@eisentraut.org> <188d0f5f-aed9-46b6-a9a6-eee55401f763@iki.fi> <39571272-7ba3-4a95-880b-3f10a970baca@eisentraut.org> <487080.1723471518@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 12 Aug 2024 10:05:18 -0400" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <490976.1723473324.0@sss.pgh.pa.us> Date: Mon, 12 Aug 2024 10:35:48 -0400 Message-ID: <491004.1723473348@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <490976.1723473324.1@sss.pgh.pa.us> I wrote: > Peter Eisentraut writes: >> Tom had tested this on and found that it does actually work on AIX 7.1 >> and 7.3 but the documentation is wrong. > I too have a distinct recollection of having tested this (using the > gcc compile farm machines), but I cannot find anything saying so in > the mailing list archives. I can go check it again, I guess. I can confirm that the attached program works on cfarm111 (AIX 7.1) and cfarm119 (AIX 7.3), though "man realpath" denies it on both systems. I also found leftover test files demonstrating that I checked this same point on Apr 26 2024, so I'm not sure why that didn't turn up in a mail list search. regards, tom lane ------- =_aaaaaaaaaa0 Content-Type: text/x-c; name="testrealpath.c"; charset="us-ascii" Content-ID: <490976.1723473324.2@sss.pgh.pa.us> Content-Description: testrealpath.c #include #include int main(int argc, char **argv) { char *pth = realpath(argv[1], NULL); if (pth) { printf("successfully resolved \"%s\" as \"%s\"\n", argv[1], pth); free(pth); } else perror("realpath"); return 0; } ------- =_aaaaaaaaaa0--