pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: jonas@morfosia.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Minor improvement for creating directory structure
Date: Thu, 9 May 2019 17:59:12 -0400
Message-ID: <20190509215912.GA24114@alvherre.pgsql> (raw)
In-Reply-To: <20190509212132.u4znpcgomcb7bvpp@momjian.us>

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.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (4+ messages)  latest in thread

Message-ID: <20190509215912.GA24114@alvherre.pgsql>
Permalink:  ../20190509215912.GA24114@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190509215912.GA24114@alvherre.pgsql

 · 

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: pgsql-docs@postgresql.org
  Cc: alvherre@2ndquadrant.com, bruce@momjian.us, jonas@morfosia.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Minor improvement for creating directory structure
  In-Reply-To: <20190509215912.GA24114@alvherre.pgsql>

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

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