Re: Change log level for notifying hot standby is waiting non-overflowed snapshot
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: torikoshia <torikoshia@oss.nttdata.com>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2025-03-03T18:17:54Z
Lists: pgsql-hackers
On 2025/03/04 0:20, torikoshia wrote: > On 2025-03-03 13:10, Fujii Masao wrote: > > Thanks for your comments! > >> On 2025/02/03 22:35, torikoshia wrote: >>> Hi, >>> >>> When a hot standby is restarted in a state where subtransactions have overflowed, it may become inaccessible: >>> >>> $ psql: error: connection to server at "localhost" (::1), port 5433 failed: FATAL: the database system is not yet accepting connections >>> DETAIL: Consistent recovery state has not been yet reached. >> >> Could you share the steps to reproduce this situation? > > We can reproduce this situation using the following procedure. Thanks! I was able to reproduce the issue. > Agreed and I feel that a message suggesting something like "check if there are any overflowing transactions on the primary side" would make it useful. I’m wondering if this message might still be confusing for users. Would they immediately understand what "overflowing transactions" means? Even after reading this message, it seems also unclear what actions they should take to resolve the issue. Plus, this message can appear multiple times if there are multiple overflowing transactions before starting accepting read-only connections - which could be even more confusing. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
Commits
-
Improve error message when standby does accept connections.
- b53b88109f94 18.0 landed