Re: moving postgresql.conf: pg_ctl can't find postmaster.pid anymore
В списке pgsql-admin по дате отправления:
| От | Ludo Smissaert |
|---|---|
| Тема | Re: moving postgresql.conf: pg_ctl can't find postmaster.pid anymore |
| Дата | |
| Msg-id | 4AEEFE26.30201@ludikidee.com обсуждение исходный текст |
| Ответ на | Re: moving postgresql.conf: pg_ctl can't find postmaster.pid anymore (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-admin |
Tom Lane wrote: > Ludo Smissaert <ludo@ludikidee.com> writes: >> Both methods works fine on server startup, but the first method gives >> problems when stopping the server with pg_ctl. > > Yeah, pg_ctl is far too stupid to cope with such things --- it expects > that PGDATA points at the data directory. Short of teaching it to parse > the config file it's not clear what we could do about that. Thanks. Summarizing: $ ls /etc/postgresql postgresql.conf pg_hba.conf pg_ident.conf $ pg_ctl -D /var/postgresql/data -o "-D /etc/postgresql" start -l ... ... server started $ pg_ctl -D /var/postgresql/data -o "-D /etc/postgresql" stop -m fast works for the first method, and for the second: $ pg_ctl -D /var/postgresql/data/ \ -o "-c config_file='/etc/postgresql/postgresql.conf'" -l ... start and for stopping the same. Have a nice day/night, Ludo
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера