Re: Small correction in chown command to set the owner of the pgsql data dir correctly

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Small correction in chown command to set the owner of the pgsql data dir correctly
Дата
Msg-id CAKFQuwaaW_WmqOU+ZV3qJ6jcq1_Qo6yWCTXSerf-dT10JYKHmQ@mail.gmail.com
обсуждение исходный текст
Ответ на Small correction in chown command to set the owner of the pgsql data dir correctly  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Small correction in chown command to set the owner of the pgsql data dir correctly  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
On Saturday, February 6, 2021, PG Doc comments form <noreply@postgresql.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.

В списке pgsql-docs по дате отправления:

Предыдущее
От: Dariusz Daćko
Дата:
Сообщение: Re: The synopsis of "ALTER DEFAULT PRIVILEGES" statement is too difficult to understand
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Small correction in chown command to set the owner of the pgsql data dir correctly