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 1sasLW-00Bifp-26 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2024 07:41:34 +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 1sasLT-00BzoT-Aw for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2024 07:41:31 +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 1sasLS-00BzoL-T6 for pgsql-hackers@lists.postgresql.org; Mon, 05 Aug 2024 07:41:31 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sasLQ-003EJd-Bj for pgsql-hackers@postgresql.org; Mon, 05 Aug 2024 07:41:30 +0000 Received: from [192.168.1.110] (dsl-hkibng22-54f8db-125.dhcp.inet.fi [84.248.219.125]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4WcpKL4sMCz49PwQ; Mon, 5 Aug 2024 10:41:26 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1722843686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MMZ3zyvX7oLdcu0L43vMpG5bU9Eg/7VW2XBP2Bnwi0A=; b=Z3VJLiswTnjI9E1A9IbKy0dtz1zreq+qCqubhspv3Fw4TvFcChyCJbDfUQQNGbDHtULGw+ NZdwEOWkT1ZOQpjjsNCTl39RPoImWfXYBpaaCAHH0CFpdh0NUqigYNfWp5Wn3tL3ZAh09J 6PFyImQ+bf26F4ipkt+ldbHlt8BRbe0wds1eI0MhbJWsI7TcSdRQH6qZXnIXPBMbz2pku8 a7K0LpcOW11G6EP6QYvCBND3TNSzTy92b3FG1i/eD3X2x7+JKOnhY5Ls1UEgh4oDUtj3d3 eqRUlP5IUbnqHv/dIsJOZtAptziE46X1Iq802jWI4aQ8637K2+RHVR0UI8AfhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1722843686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MMZ3zyvX7oLdcu0L43vMpG5bU9Eg/7VW2XBP2Bnwi0A=; b=tRTlhrQLTEgSNCnvlwaF83/g41BFM77VK7AUs1c/iq3mYKr20YgM/7l8p0bsyt2wOVrgnA x4BQha5FzsV6Qka7owFUOXSwL8BgWald5NlIMBQwiSOo7LHg3Yx7LM3erff5ndktI62Q5p 05JtpJbby1Lob8BwQl7VsW+u4jLYr5FwEumkluDZSfsMX3NAuAu5J0+yDoAv5o/TJzC8G+ 2RdPOIq7OhaxmfDPoTqBaX5Dfw9bnrY3xc/wbW9NheID3tCov8Ql4rDCGCQf6EmeNdv2kW OWIU8+862AvZAL1vcYIlQlWLfID2KIfh+t7UxhhgvWHyb6q6liGqMxRMhJv7sA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1722843686; a=rsa-sha256; cv=none; b=lLw/QqW4BQi+252hZjPbEXWTN1q2PzpSbRcJjZxeb7Ic/W1EhDfNlStB3/l0jQ7UDzj0DE Q6rTZVK84eOdbEEfiEsgTyOyEiCqNeFNk7xtN+5/L0s/abn9QAflndjIb22WdTQpEQoQhk tMx3D4Gi1hoGnKoM1qxh2OqYDZ4eKRd9IXHIz16eEgAPKT+3/5ub90Zu+Q+uOPAG85B0Os Z+wmKnP6uxdkofbInGMQWjrdEenuh2npSIDyGGXPG3GcSrouGOv0XaOvwkbZhafd9wsh4f dzatzAhgB/Sm7ajdN0hpUoX1jhPupAHOJsZUefojeL5g2OvmKrSU2DjGh8GnxA== Message-ID: <188d0f5f-aed9-46b6-a9a6-eee55401f763@iki.fi> Date: Mon, 5 Aug 2024 10:41:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Remove support for old realpath() API To: Peter Eisentraut , pgsql-hackers References: <9e638b49-5c3f-470f-a392-2cbedb2f7855@eisentraut.org> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <9e638b49-5c3f-470f-a392-2cbedb2f7855@eisentraut.org> 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 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. +1 We don't seem to have any mentions of POSIX or SuS in docs, in the installation sections. There are a few mentions of POSIX-1.2008 and POSIX-1.2001 it in the commit log, though, where we require features specified by those. Can we rely on everything from POSIX-1-2008 nowadays, or is it more on a case-by-case basis, depending on which parts of POSIX are supported by various platforms? -- Heikki Linnakangas Neon (https://neon.tech)