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

From Tom Lane
Subject Re: Nicer error when connecting to standby with hot_standby=off
Date
Msg-id 890750.1616517241@sss.pgh.pa.us
Whole thread Raw
In response to Re: Nicer error when connecting to standby with hot_standby=off  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Nicer error when connecting to standby with hot_standby=off  (James Coleman <jtc331@gmail.com>)
List 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 by date:

Previous
From: Pantelis Theodosiou
Date:
Subject: Re: [PATCH] Allow multiple recursive self-references
Next
From: Robert Haas
Date:
Subject: Re: making update/delete of inheritance trees scale better