make pg_ctl start more friendly - Mailing list pgsql-hackers

From Crisp Lee
Subject make pg_ctl start more friendly
Date
Msg-id CAGHPtV7yiGLQokRf=ek4FDafHbUcxVyT8XFeU=Ftbx-Pe5Sm5w@mail.gmail.com
Whole thread Raw
List 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 by date:

Previous
From: torikoshia
Date:
Subject: Re: RFC: Logging plan of the running query
Next
From: Julien Rouhaud
Date:
Subject: Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements