Re: Nicer error when connecting to standby with hot_standby=off - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Nicer error when connecting to standby with hot_standby=off
Date
Msg-id e72cc9a0-ee5b-aff6-4aa0-821821499ee8@oss.nttdata.com
Whole thread Raw
In response to Re: Nicer error when connecting to standby with hot_standby=off  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Nicer error when connecting to standby with hot_standby=off
List pgsql-hackers

On 2021/03/24 5:59, Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> FATAL:  the database system is starting up
>> DETAIL:  WAL is being applied to recover from a system crash.
>> or
>> DETAIL:  The system is applying WAL to recover from a system crash.
>> or
>> DETAIL:  The startup process is applying WAL to recover from a system crash.
> 
> I don't think the postmaster has enough context to know if that's
> actually true.  It just launches the startup process and waits for
> results.  If somebody saw this during a normal (non-crash) startup,
> they'd be justifiably alarmed.

Yes, so logging "the database system is starting up" seems enough to me.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: PostmasterIsAlive() in recovery (non-USE_POST_MASTER_DEATH_SIGNAL builds)
Next
From: Peter Geoghegan
Date:
Subject: Re: New IndexAM API controlling index vacuum strategies