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 "David G. Johnston" <david.g.johnston@gmail.com>
Re: Small correction in chown command to set the owner of the pgsql data dir correctly Tom Lane <tgl@sss.pgh.pa.us>
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
Дата:
От: Tom Lane
Дата:
FAQ