Re: Renaming some binaries

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Renaming some binaries
Дата
Msg-id d0bd7c8b-6b22-f48d-9acf-77fd3d43a0df@2ndquadrant.com
обсуждение исходный текст
Ответ на Renaming some binaries  (Euler Taveira <euler@timbira.com.br>)
Ответы Re: Renaming some binaries  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 8/26/16 12:26 PM, Euler Taveira wrote:
> initdb: we already have 'pg_ctl init' (since 9.0) and could remove initdb.

I have a concern specifically about pg_ctl.  Depending on how your
PostgreSQL is packaged, not all of the pg_ctl actions are safe or
sensible to run.  For example, if you are using systemd, then using
pg_ctl restart will probably not do the right thing.  And depending on
SELinux (maybe), running initdb directly might also not do the right
thing.  In most cases, you can just not use pg_ctl and do all these
things differently, but for example pg_ctl promote is the only
documented way to do that thing.

Until we have a better way to figure that out, I wouldn't want to put
more things into pg_ctl, especially as the only way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Renaming of pg_xlog and pg_clog
Следующее
От: Martín Marqués
Дата:
Сообщение: Re: pg_dump with tables created in schemas created by extensions