Re: Nicer error when connecting to standby with hot_standby=off

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Nicer error when connecting to standby with hot_standby=off
Дата
Msg-id 890750.1616517241@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Nicer error when connecting to standby with hot_standby=off  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: Nicer error when connecting to standby with hot_standby=off  (James Coleman <jtc331@gmail.com>)
Список pgsql-hackers
Alvaro Herrera <alvherre@alvh.no-ip.org> 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.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pantelis Theodosiou
Дата:
Сообщение: Re: [PATCH] Allow multiple recursive self-references
Следующее
От: Robert Haas
Дата:
Сообщение: Re: making update/delete of inheritance trees scale better