pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Minor improvement for creating directory structure
4+ messages / 3 participants
[nested] [flat]

* Minor improvement for creating directory structure
@ 2019-05-08 07:40  PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 4+ messages in thread

From: PG Doc comments form @ 2019-05-08 07:40 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: jonas@morfosia.com

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

Suggested correction:
$ mkdir -p /usr/local/pgsql/data
-------------------------
2)
chown -R postgres /usr/local/pgsql

/Jonas


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Minor improvement for creating directory structure
@ 2019-05-09 21:21  Bruce Momjian <bruce@momjian.us>
  parent: PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2019-05-09 21:21 UTC (permalink / raw)
  To: jonas@morfosia.com; pgsql-docs@lists.postgresql.org

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.

-- 
  Bruce Momjian  <bruce@momjian.us>        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 +





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Minor improvement for creating directory structure
@ 2019-05-09 21:59  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2019-05-09 21:59 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: jonas@morfosia.com; pgsql-docs@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Minor improvement for creating directory structure
@ 2019-05-09 22:02  Bruce Momjian <bruce@momjian.us>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Bruce Momjian @ 2019-05-09 22:02 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: jonas@morfosia.com; pgsql-docs@lists.postgresql.org

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  <bruce@momjian.us>        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 +





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-05-09 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-05-08 07:40 Minor improvement for creating directory structure PG Doc comments form <noreply@postgresql.org>
2019-05-09 21:21 ` Bruce Momjian <bruce@momjian.us>
2019-05-09 21:59   ` Alvaro Herrera <alvherre@2ndquadrant.com>
2019-05-09 22:02     ` Bruce Momjian <bruce@momjian.us>

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