public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Daniel Gustafsson <[email protected]>
Cc: Daniel Westermann (DWE) <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Fir mkdir command in "Short Version" for installing from source
Date: Mon, 14 Mar 2022 10:01:32 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <ZR0P278MB0920263E7F2D546A33E50079D20E9@ZR0P278MB0920.CHEP278.PROD.OUTLOOK.COM>
	<[email protected]>

Daniel Gustafsson <[email protected]> writes:
> On 13 Mar 2022, at 17:05, Daniel Westermann (DWE) <[email protected]> wrote:
>> Is it worth fixing that with "mkdir -p ..."? 

> 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.

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.

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.

			regards, tom lane





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Fir mkdir command in "Short Version" for installing from source
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox