pgsql: Rethink SQLSTATE code for ERRCODE_IDLE_SESSION_TIMEOUT. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Rethink SQLSTATE code for ERRCODE_IDLE_SESSION_TIMEOUT.
Date
Msg-id E1kz3GF-0006lZ-5E@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Rethink SQLSTATE code for ERRCODE_IDLE_SESSION_TIMEOUT.

Move it to class 57 (Operator Intervention), which seems like a
better choice given that from the client's standpoint it behaves
a heck of a lot like, e.g., ERRCODE_ADMIN_SHUTDOWN.

In a green field I'd put ERRCODE_IDLE_IN_TRANSACTION_SESSION_TIMEOUT
here as well.  But that's been around for a few years, so it's
probably too late to change its SQLSTATE code.

Discussion: https://postgr.es/m/763A0689-F189-459E-946F-F0EC4458980B@hotmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4edf96846a02693e4416478b3302e5133d2e8e01

Modified Files
--------------
src/backend/utils/errcodes.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Uniformly identify the target host in libpq connection failure r
Next
From: Alvaro Herrera
Date:
Subject: Re: pgsql: Track collation versions for indexes.