From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | "samantaswarnava1(at)gmail(dot)com" <samantaswarnava1(at)gmail(dot)com>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Small correction in chown command to set the owner of the pgsql data dir correctly |
Date: | 2021-02-07 15:32:13 |
Message-ID: | CAKFQuwaaW_WmqOU+ZV3qJ6jcq1_Qo6yWCTXSerf-dT10JYKHmQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
On Saturday, February 6, 2021, PG Doc comments form <noreply(at)postgresql(dot)org>
wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/13/creating-cluster.html
> Description:
>
> "root# mkdir /usr/local/pgsql
> root# chown postgres /usr/local/pgsql
> root# su postgres
> postgres$ initdb -D /usr/local/pgsql/data"
> If these steps are followed then it still fails to initialize the DB as
> chown only gives ownership to the pgsql directory but not the child
> directories under pgsql,
>
If you follow those four steps exclusively then at the fourth step there
are no child directories since step one created the pgsql directory and
neither step two nor three created any other directories.
The reader has already been told that if the directory being pointed to
exists it must be owned by postgres.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-02-07 16:25:34 | Re: Small correction in chown command to set the owner of the pgsql data dir correctly |
Previous Message | Dariusz Daćko | 2021-02-07 11:04:49 | Re: The synopsis of "ALTER DEFAULT PRIVILEGES" statement is too difficult to understand |