make pg_ctl start more friendly

Поиск
Список
Период
Сортировка
От Crisp Lee
Тема make pg_ctl start more friendly
Дата
Msg-id CAGHPtV7yiGLQokRf=ek4FDafHbUcxVyT8XFeU=Ftbx-Pe5Sm5w@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
I tried PITR recovery, and the 'recovery_target_action' guc is shutdown. I got a failure, and it told me to check the log, finally I found the result was due to guc. I think pg_ctl should print some information which told users recovery had been done.
I developed a commit in my workspace. The steps below:
1. postmaster exits with code 3 if startup shutdowns because of recovery target action
2. add enum POSTMASER_RECOVERY_SHUTDOWN in pg_ctl
3. print information to stderr if the postmaster's exit code is 3
I test, and it's ok. 
I think this information is very useful, especially for some beginners. A good project not only needs performance, but also ease-of-use.

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

Предыдущее
От: torikoshia
Дата:
Сообщение: Re: RFC: Logging plan of the running query
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements