idle-in-transaction timeout error does not give a hint

From: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: idle-in-transaction timeout error does not give a hint
Date: 2018-11-28 03:17:37
Message-ID: 20181128.121737.1400726037698116085.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

idle-in-transaction timeout error closed the session. I think in this
case the error message should give a hint something like other errors
(for example ERRCODE_CRASH_SHUTDOWN or
ERRCODE_T_R_SERIALIZATION_FAILURE) to ask users to reconnect.
Attached patch does that.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

Attachment Content-Type Size
idle_in_trasaction_error_hint.diff text/x-patch 679 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2018-11-28 03:18:35 Re: "pg_ctl: the PID file ... is empty" at end of make check
Previous Message Tom Lane 2018-11-28 03:10:26 Re: "pg_ctl: the PID file ... is empty" at end of make check