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 1n6fi3-0006Sh-C1 for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jan 2022 21:26:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n6fi2-0005vg-8U for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jan 2022 21:26:38 +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 1n6fi1-0005vX-T1 for pgsql-hackers@lists.postgresql.org; Sun, 09 Jan 2022 21:26:37 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n6fhu-0005nh-Uy for pgsql-hackers@lists.postgresql.org; Sun, 09 Jan 2022 21:26:36 +0000 Received: by mail-il1-x12a.google.com with SMTP id f4so1252065ilr.9 for ; Sun, 09 Jan 2022 13:26:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=krBtwKLVd/Ie0xsq6RN3StKkgcdhUoPTPWlfC7v5GQ8=; b=twzlLrJAkVLOshFAYfvRIul64cKWvTiyx2PKAy+4GWEc67UbEoPgwopfF/C1mY3h+f B3BMX7ImnKwzcywjsNAjKrXhDlDzohyI6C5GGkODLj6hHEEccCu3FeT7XgrqhFZ50KjG x9gHWdpFU9tFPOq5c/EgNUzVRYzhbzAqHab9LFtRgnIFeLDXj73OqP4F6Q335Sk0CwE3 W1z2WvzL2PJmZ390UOFczVxp7+jO+2aj9bbXPwGtqqTKzZSPxQyEEISUZHGZvVuIeBPo aPtMr9VqyI5LOnv9NmjZjwt0vYjgheOwr67p0iyEGFX71wv9q04NBEK8tfU1WVhqOzQt QbTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=krBtwKLVd/Ie0xsq6RN3StKkgcdhUoPTPWlfC7v5GQ8=; b=McdDkS/biDk4GkMKarVl9Rc1eERqsMPn53FJQMHjEmzc8K5s3Uf/uqKLCNlJPUZQax MZGaLAXXRpTeTlipZljXOA+NMO1UJUPmkLzNAmZKId1ccvZdhG32LD4wUNbXgTxie6/X XJ0qw/uhcRDLFLepHL3T75ClN6l2RQt7PPID+OD6dtrAsG7OKaQwWlCXdaufzgjtY44O /VPfe0AW5oCEdRRFKYtYPow5Q1YCdE5FJrci0y5KB52QTB0SvRpZe8tI0o4T8SGmHOUH O3qcLign16xteLM6Lmu/+12Lg6XyKQQ6WES7Sw6yljr50RLOJee+FLktrpxQvYiqQeCE GRcQ== X-Gm-Message-State: AOAM532EIJ5vTr2BdG53P00n2IXkHMVqFBqn9Iysr8yoWBs3gMhmD02g GbV2OxFAF/I1/wYBC8Tkxc80qA== X-Google-Smtp-Source: ABdhPJzidieyV/9AlJbtxga/B+u4STVrCQMqk9JHdR76yp/tvC3TugDHxvHFRNPEEF0kWw/i51TE9w== X-Received: by 2002:a05:6e02:152b:: with SMTP id i11mr27663733ilu.201.1641763590202; Sun, 09 Jan 2022 13:26:30 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f1sm3207686iow.33.2022.01.09.13.26.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jan 2022 13:26:29 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id E6BAC80486A; Sun, 9 Jan 2022 15:26:28 -0600 (CST) Date: Sun, 9 Jan 2022 15:26:28 -0600 From: Justin Pryzby To: Tom Lane Cc: Anders Kaseorg , Daniel Gustafsson , Kyotaro Horiguchi , alvherre@alvh.no-ip.org, pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory Message-ID: <20220109212628.GN14051@telsasoft.com> References: <202110182223.zeze33l55qa5@alvherre.pgsql> <20211019.173422.706584612464055211.horikyota.ntt@gmail.com> <5d675cbe-7837-e9ae-961d-be7d03201f3b@mit.edu> <20211020.144014.580443822870543857.horikyota.ntt@gmail.com> <07CA67A0-A46C-4ED5-99C6-24D41BDDC8CA@yesql.se> <1769427.1641754742@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1769427.1641754742@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jan 09, 2022 at 01:59:02PM -0500, Tom Lane wrote: > Given the POSIX requirements, it's basically impossible to believe > that there are interesting cases where $HOME isn't set. I've run into this before - children of init may not have HOME set. It's easy enough to add it if it's needed, but should probably be called out in the release notes. -- Justin