make pg_ctl start more friendly

From: Crisp Lee <litianxiang01(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: make pg_ctl start more friendly
Date: 2023-10-24 12:33:38
Message-ID: CAGHPtV7yiGLQokRf=ek4FDafHbUcxVyT8XFeU=Ftbx-Pe5Sm5w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2023-10-24 12:40:22 Re: [PATCH] Tracking statements entry timestamp in pg_stat_statements
Previous Message torikoshia 2023-10-24 12:30:49 Re: RFC: Logging plan of the running query