Re: make pg_ctl more friendly

2023-11-08 Thread Crisp Lee
Hi, I thought the PITR shutdown was DB_SHUTDOWN. I made a mistake. The v2 attach looks good. On Thu, Nov 9, 2023 at 3:19 PM Junwang Zhao wrote: > On Thu, Nov 9, 2023 at 3:08 PM Junwang Zhao wrote: > > > > On Thu, Nov 9, 2023 at 9:57 AM Crisp Lee > wrote: > > > &

Re: make pg_ctl more friendly

2023-11-08 Thread Crisp Lee
told me about startup failure. I think the startup had succeeded and the result was not a exception. pg_ctl should tell users about detailed messages. On Thu, Nov 9, 2023 at 9:32 AM Andres Freund wrote: > Hi, > > On 2023-11-09 09:29:32 +0800, Crisp Lee wrote: > > Ho

Re: make pg_ctl more friendly

2023-11-08 Thread Crisp Lee
How to judge from 'DB_SHUTDOWNED' that PITR ends normally? 'DB_SHUTDOWNED' is just a state, it could not give more meaning, so I reuse the recovery.done. On Sat, Nov 4, 2023 at 9:56 AM Andres Freund wrote: > Hi, > > On 2023-11-02 14:50:14 +0800, Crisp Lee wrote: > > I got a b

make pg_ctl more friendly

2023-11-02 Thread Crisp Lee
Hi hackers: I got a basebackup using pg_basebackup -R. After that, I created a restore point named test on primary, and set recovery_target_name to test, recovery_target_action to shutdown in standby datadir. I got a failure startup message after 'pg_ctl start -D $standby_datadir'. I think it is

make pg_ctl start more friendly

2023-10-24 Thread Crisp Lee
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