| От | Tom Lane |
|---|---|
| Тема | Re: Configfiles outside initDB dir |
| Дата | |
| Msg-id | 19600.1134574393@sss.pgh.pa.us обсуждение |
| Ответ на | Configfiles outside initDB dir (Hannes Dorbath <light@theendofthetunnel.de>) |
| Список | pgsql-admin |
Hannes Dorbath <light@theendofthetunnel.de> writes:
> I want to have postgresql.conf and pg_hba.conf outside the directory
> created by initDB.
> $PGDATA points to the directory the config files reside in (and nothing
> else) and in postgresql.conf the option "data_directory" is set to the
> directory containing the cluster created by initDB. I can use pg_ctl
> start but pg_ctl stop failes as it expects the pid file in the dir with
> the config files.
I think you want pg_ctl's PGDATA pointing to the data_directory. pg_ctl
does not know anything about the config files, and in particular is not
smart enough to parse them to find the data_directory value.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера