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 1nTliF-00030t-KX for pgsql-docs@arkaria.postgresql.org; Mon, 14 Mar 2022 14:30:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nTlhG-0002QM-Cn for pgsql-docs@arkaria.postgresql.org; Mon, 14 Mar 2022 14:29:18 +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 1nTlhG-0002QD-5P for pgsql-docs@lists.postgresql.org; Mon, 14 Mar 2022 14:29:18 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nTlhD-0001iX-EG for pgsql-docs@lists.postgresql.org; Mon, 14 Mar 2022 14:29:17 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 017AB2E89409 for ; Mon, 14 Mar 2022 15:28:48 +0100 (CET) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id E698F2E2886A; Mon, 14 Mar 2022 15:28:47 +0100 (CET) Received: from s475.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id E340E7E7641; Mon, 14 Mar 2022 15:28:47 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s899.loopia.se ([172.22.191.6]) by s475.loopia.se (s475.loopia.se [172.22.190.15]) (amavisd-new, port 10024) with LMTP id zRXhJcv18ZyQ; Mon, 14 Mar 2022 15:28:47 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.144] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id 7F75C2C96DC7; Mon, 14 Mar 2022 15:28:47 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Fir mkdir command in "Short Version" for installing from source From: Daniel Gustafsson In-Reply-To: <172346.1647266492@sss.pgh.pa.us> Date: Mon, 14 Mar 2022 15:28:47 +0100 Cc: "Daniel Westermann (DWE)" , "pgsql-docs@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <452E6586-867E-4928-976D-482E912C3945@yesql.se> References: <9E25E4E0-7E68-4D97-A031-F3099EDCF09D@yesql.se> <172346.1647266492@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 14 Mar 2022, at 15:01, Tom Lane wrote: >=20 > Daniel Gustafsson writes: >> On 13 Mar 2022, at 17:05, Daniel Westermann (DWE) = wrote: >>> Is it worth fixing that with "mkdir -p ..."?=20 >=20 >> Well, it will fail unless the user already had /usr/local/pgsql/, but = I hear >> what you're saying. Though I bet almost anyone following this will = be able to >> figure it out but there is little to no value in not being correct. >=20 > I think that at the time that was written, mkdir didn't universally > have a "-p" option. But POSIX has required that for a very long > time, so it's probably safe to assume it now. Yeah, I wasn't able to find any credibly still useable system man page = which didn't list -p. (the fact that IRIX seems to have been one of very few = to have a long option '--parents' was an interesting archeological tidbit = learned.) > A larger issue is that blind "mkdir -p" may not produce the ownerships > and permissions you want for the parent directories. That's not a > topic to get into in a one-line summary, though. Agreed, we're skipping over lots of details in this short version. I'll to make the mkdir -p change happen later today unless someone feels strongly about leaving it out. -- Daniel Gustafsson https://vmware.com/