Re: Nicer error when connecting to standby with hot_standby=off
От
James Coleman
Тема
Re: Nicer error when connecting to standby with hot_standby=off
Дата
Msg-id
CAAaqYe_E1_gdQZp8JvTGskpuq_uXvRMFhUTK8oBK4RWv4F7+_A@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
Re: Nicer error when connecting to standby with hot_standby=off Andres Freund <andres@anarazel.de>
Re: Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
Re: Nicer error when connecting to standby with hot_standby=off Andres Freund <andres@anarazel.de>
Re: Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
Re: Nicer error when connecting to standby with hot_standby=off David Zhang <david.zhang@highgo.ca>
Re: Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
Re: Nicer error when connecting to standby with hot_standby=off Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
Re: Nicer error when connecting to standby with hot_standby=off Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Nicer error when connecting to standby with hot_standby=off James Coleman <jtc331@gmail.com>
On Tue, Mar 23, 2021 at 12:34 PM Tom Lane wrote:
>
> Alvaro Herrera writes:
> > However, for this one
>
> > + case CAC_NOTCONSISTENT:
> > + if (EnableHotStandby)
> > + ereport(FATAL,
> > + (errcode(ERRCODE_CANNOT_CONNECT_NOW),
> > + errmsg("the database system is not accepting connections"),
> > + errdetail("Consistent recovery state has not been yet reached.")));
>
> > Maybe it makes sense to say "... is not accepting connections *yet*".
>
> +1, but I think "... is not yet accepting connections" is slightly
> better style.
All right, see attached v8.
James Coleman
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата: