Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pG0x4-0007m2-0s for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:01:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pG0x2-0005Vj-Dk for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 17:01:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pG0x1-0005VP-C9 for pgsql-hackers@lists.postgresql.org; Thu, 12 Jan 2023 17:01:16 +0000 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pG0wt-0002rL-E8 for pgsql-hackers@postgresql.org; Thu, 12 Jan 2023 17:01:14 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 4ECDB2B06432; Thu, 12 Jan 2023 12:01:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 12 Jan 2023 12:01:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1673542864; x= 1673550064; bh=Fj1UAymRkJUyXrvdPTvISkGWFMMaKmD4R8Sy0GEvr/A=; b=e a2EZl08U1N1UdSvJQki7CFy21K54gdmZCuR/C7sw+WOZOXllYj8WZJkRW1giwHkX YODXx76GDZBSEF8Ksah/vrpxaGXzch49ptEKhAMLmazqowtfk9iVTtlijjmh6/6I aZP4PIUYhFE0BdW/XzfOox+iIq5myPOImIoYckvAnqv5pxTzAzQegtwOAlZip9y1 FQE5l9+5Wz0I7wzvOgT5mqArdzdjMATuWeA6aawkcq1luuuQKSLA+VbRtjppwJ+Y C1LovCmien1ieEeyTDIxvv2NQB6z/f37hrMWuDpgXp8LcZZb6XbjEeOo7YnsTrTO zOPVF2ik5uaH0ktBFdjoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrleeigdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefh leetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Jan 2023 12:01:01 -0500 (EST) Message-ID: <63a898b5-dc09-1ec1-40ec-e9d09e8304e7@enterprisedb.com> Date: Thu, 12 Jan 2023 18:00:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: drop postmaster symlink Content-Language: en-US To: Joe Conway , Robert Haas , Andres Freund Cc: Tom Lane , =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , pgsql-hackers References: <252b8b14-dc3e-1c70-3da5-e59c1616f2ad@joeconway.com> <6b11c9efcd3a1d89719370224d84f8cd5e7b1a8c.camel@gunduz.org> <3705500.1669216069@sss.pgh.pa.us> <20221123195010.huuypoilx6lw7ceg@awork3.anarazel.de> <61846051-90b9-adb6-7627-08a374473a61@joeconway.com> From: Peter Eisentraut In-Reply-To: <61846051-90b9-adb6-7627-08a374473a61@joeconway.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.11.22 21:32, Joe Conway wrote: >> Yeah. Also, I don't think it's generally too hard to find the parent >> process anyway, because at least on my system, the other ones end up >> with ps display that looks like "postgres: logical replication >> launcher" or whatever. The main process doesn't set the ps status >> display, so that's the only one that shows a full path to the >> executable in the ps status, which is how I usually spot it. That has >> the advantage that it doesn't matter which name was used to launch it, >> too. I think it is a problem that one of the most widely used packagings of PostgreSQL uses techniques that are directly contradicting the PostgreSQL documentation and are also inconsistent with other widely used packagings. Users might learn this "trick" but then can't reuse it elsewhere, and conversely those who come from other systems might not be able to reuse their scripts. That is annoying. > FWIW, the reason I took note of the postmaster symlink in the first > place a few years ago was because selinux treats execution of programs > from symlinks differently than from actual files. This is another such case, where knowledge about selinux configuration cannot be transported between Linux distributions. I almost feel that issues like this make a stronger case for removing the postmaster symlink than if it hadn't actually been in use, since the removal would serve to unify the landscape for the benefit of users.