RE: idle-in-transaction timeout error does not give a hint - Mailing list pgsql-hackers

From Ideriha, Takeshi
Subject RE: idle-in-transaction timeout error does not give a hint
Date
Msg-id 4E72940DA2BF16479384A86D54D0988A6F3BDA64@G01JPEXMBKW04
Whole thread Raw
In response to idle-in-transaction timeout error does not give a hint  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Responses Re: idle-in-transaction timeout error does not give a hint
List pgsql-hackers
>From: Tatsuo Ishii [mailto:ishii@sraoss.co.jp]
>Sent: Wednesday, November 28, 2018 12:18 PM
>To: pgsql-hackers@lists.postgresql.org
>Subject: idle-in-transaction timeout error does not give a hint
>
>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.

Hi, it makes sense to me. One can submit transaction again same as other cases
you mentioned. 

I didn't attach the patch but according to my simple experiment
in psql the output would become the following:

FATAL:  terminating connection due to idle-in-transaction timeout
HINT: In a moment you should be able to reconnect to the
      database and repeat your command.
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.

Regards,
Takeshi Ideriha



pgsql-hackers by date:

Previous
From: Erik Rijkers
Date:
Subject: psql --csv and other parameters
Next
From: Amit Kapila
Date:
Subject: Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query