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 1mcb2z-0007Bc-Rt for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Oct 2021 22:23:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcb2y-0008WV-Lu for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Oct 2021 22:23:56 +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 1mcb2y-0008WM-Do for pgsql-hackers@lists.postgresql.org; Mon, 18 Oct 2021 22:23:56 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcb2w-0000lB-9y for pgsql-hackers@lists.postgresql.org; Mon, 18 Oct 2021 22:23:55 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4F3363201C3B; Mon, 18 Oct 2021 18:23:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 18 Oct 2021 18:23:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=HcYUIT1awDFQnX9EJ4xy+VVKQmVhofbNjYOqVep5q0Y=; b=klhBAHe4 rNxkN0/75rWPmYFqw622+WBdzYOvQtgiQdey+xDDbc1DNkKRo8BAtDC1/FUezq// jptOJQbimJhB7dfk5kshN3D5pfdgszj7W8LXyFtpI/9RwOO5CBwTwMIt2AV7bu7g sNGdt3MvzBX3RQrECXvxS4riLLyN83BjvCIznlbn+O2JQvgms2DTKlBZONB0FeEk kGorPX5wk0KMDgr5Z/ms1FTYErqEtkXO8T+dytpcvBM+z28jb90C8k4ke+wVtjFE 7Fu0zwB0Q4nUEOj/Dnkb/L8lwSosOfM3VHkxuefcWsLnZUAQyVnTTxkjS0j7TUqn yn8HKv1ago2L5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvuddgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeelfeekhffgleetieegjeekvdejvdelhfeuheefvdejheeu teevteejkeeufffgheenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnh htvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Oct 2021 18:23:52 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2FC272A07C7; Mon, 18 Oct 2021 19:23:50 -0300 (-03) Date: Mon, 18 Oct 2021 19:23:50 -0300 From: Alvaro Herrera To: Anders Kaseorg Cc: "pgsql-hackers@lists.postgresql.org" Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory Message-ID: <202110182223.zeze33l55qa5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1634252654444.90107@mit.edu> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Oct-14, Anders Kaseorg wrote: > This is important for systems where many users share the same UID, and > for test systems that change HOME to avoid interference with the > user’s real home directory. It matches what most applications do, as > well as what glibc does for glob("~", GLOB_TILDE, …) and wordexp("~", > …). > > There was some previous discussion of this in 2016, where although > there were some questions about the use case, there seemed to be > general support for the concept: > > https://www.postgresql.org/message-id/flat/CAEH6cQqbdbXoUHJBbX9ixwfjFFsUC-a8hFntKcci%3DdiWgBb3fQ%40mail.gmail.com I think modifying $HOME is a strange way to customize things, but given how widespread it is [claimed to be] today, it seems reasonable to do things that way. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/