Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr7d-0001Ys-76 for pgsql-docs@arkaria.postgresql.org; Thu, 09 May 2019 22:02:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hOr7b-0007Oj-SG for pgsql-docs@arkaria.postgresql.org; Thu, 09 May 2019 22:02:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr7b-0007MI-GQ for pgsql-docs@lists.postgresql.org; Thu, 09 May 2019 22:02:35 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOr7Y-0005Uf-OZ for pgsql-docs@lists.postgresql.org; Thu, 09 May 2019 22:02:34 +0000 Received: from bruce by momjian.us with local (Exim 4.89) (envelope-from ) id 1hOr7X-0002R8-23; Thu, 09 May 2019 18:02:31 -0400 Date: Thu, 9 May 2019 18:02:31 -0400 From: Bruce Momjian To: Alvaro Herrera Cc: jonas@morfosia.com, pgsql-docs@lists.postgresql.org Subject: Re: Minor improvement for creating directory structure Message-ID: <20190509220231.eikabjuedum26cbu@momjian.us> References: <20190509212132.u4znpcgomcb7bvpp@momjian.us> <20190509215912.GA24114@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190509215912.GA24114@alvherre.pgsql> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, May 9, 2019 at 05:59:12PM -0400, Alvaro Herrera wrote: > On 2019-May-09, Bruce Momjian wrote: > > > On Wed, May 8, 2019 at 07:40:16AM +0000, PG Doc comments form wrote: > > > The following documentation comment has been logged on the website: > > > > > > Page: https://www.postgresql.org/docs/10/install-short.html > > > Description: > > > > > > 1) > > > $ mkdir /usr/local/pgsql/data > > > mkdir: cannot create directory ‘/usr/local/pgsql/data’: No such file or > > > directory > > > > My docs say: > > > > -p, --parents > > no error if existing, make parent directories as needed > > > > While I can see the value of "make parent directories as needed", having > > it do "no error if existing" could be bad. > > Why? initdb is going to fail anyway if it contains anything. I guess you would want to know right away. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +