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 1sdP6U-00FGip-Mr for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 07:04:30 +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 1sdP6T-00Dv7Q-Bb for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 07:04:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdP6T-00Dv7I-1l for pgsql-hackers@lists.postgresql.org; Mon, 12 Aug 2024 07:04:29 +0000 Received: from fout2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdP6Q-004JCz-DA for pgsql-hackers@postgresql.org; Mon, 12 Aug 2024 07:04:27 +0000 Received: from phl-compute-04.internal (phl-compute-04.nyi.internal [10.202.2.44]) by mailfout.nyi.internal (Postfix) with ESMTP id 7BE53138FD22; Mon, 12 Aug 2024 03:04:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 12 Aug 2024 03:04:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1723446265; x=1723532665; bh=gwg4n7DiYK7MwkYVxsZKsiohihdCpuv2 692a0zg2aSM=; b=sLz2Q+kXyjxKISEL8PS3XfMf5yJfs1xncLRKrpGAXQ9GaJHL iMvVhxIql18Xemn4h4jP5UjSJjywGYAjioB+VI3HPPkfaQ23kMh1FCJBUj9dKsVQ SE877+7eIOaw18oTDr2W8Gz4fJVwE4Fqvsxe84w+w4xIj6JMFVf1ntl0F3S8vTbI KPwq3LxtOZjuuvTMH8vwH1g7GoCj02zcH69AGVfgPice9DCYbmZokZnjBqjBUn9H Q7k97QDtlZS/LI8QsGpWk9Sg2zu/KBBkgQiRPEV9CmZEC0KmZe/FeZE0m4HT12bb XzuwmJ2TDCtBE+Pqpc9CcmP6XzF1zY9IN3Oskg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1723446265; x= 1723532665; bh=gwg4n7DiYK7MwkYVxsZKsiohihdCpuv2692a0zg2aSM=; b=e ISfPmquqoYrjPkuIyezWQTOlXMrl18IPa1fzIjcYuoyB9qmdcalaWt9Ywa0q0LfI sKqGd216og7gNOUAbt6WhRkfZQF5Lpmp1OSF9oESZcKZEBjdR04IcFoFG2hIGsbz RqC339qVkgdBXknMwflV39UXLdtl37CTcgFyX2zmExICI+HZfLZnnJNZYC9xyiip mVSfxbMbLirdxgZhkdm2/YCN0ZMOMA3WLMgfA6Ou9d9vGjLpghCu+ow4C2JI7U2V Na7HmOsUQFGT9drzqhomkTFxKvzc5sKKYT4BQrgjzebXsZUxl+BgcmM+V8PVW15c L+SILUxLIpvV6z8hyDMdQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrleelgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhephfeutddtgfeuueelfffggeek jedtveetkefhvefgjeejteeuteetjedtiefhvdffnecuffhomhgrihhnpehisghmrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgv thgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdr tghomhdprhgtphhtthhopehhlhhinhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Aug 2024 03:04:24 -0400 (EDT) Message-ID: <39571272-7ba3-4a95-880b-3f10a970baca@eisentraut.org> Date: Mon, 12 Aug 2024 09:04:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Remove support for old realpath() API To: Thomas Munro Cc: Heikki Linnakangas , pgsql-hackers References: <9e638b49-5c3f-470f-a392-2cbedb2f7855@eisentraut.org> <188d0f5f-aed9-46b6-a9a6-eee55401f763@iki.fi> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.08.24 08:47, Thomas Munro wrote: > On Mon, Aug 12, 2024 at 6:18 PM Peter Eisentraut 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... Tom had tested this on and found that it does actually work on AIX 7.1 and 7.3 but the documentation is wrong.