RE: Terminate the idle sessions - Mailing list pgsql-hackers

From kuroda.hayato@fujitsu.com
Subject RE: Terminate the idle sessions
Date
Msg-id OSBPR01MB31578B0404627324A0F74158F5E30@OSBPR01MB3157.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Terminate the idle sessions  (Li Japin <japinli@hotmail.com>)
Responses Re: Terminate the idle sessions  (Li Japin <japinli@hotmail.com>)
List pgsql-hackers
Dear Li,

> Thanks for your advice! Attached v4.

I confirmed it. OK.

> @@ -30,6 +30,7 @@ typedef enum TimeoutId
>      STANDBY_DEADLOCK_TIMEOUT,
>      STANDBY_TIMEOUT,
>      STANDBY_LOCK_TIMEOUT,
> +    IDLE_SESSION_TIMEOUT,
>      IDLE_IN_TRANSACTION_SESSION_TIMEOUT,
>      /* First user-definable timeout reason */
>      USER_TIMEOUT,

I'm not familiar with timeout, but I can see that the priority of idle-session is set lower than transaction-timeout.
Could you explain the reason? In my image this timeout locates at the lowest layer, so it might have the lowest 
priority.

Other codes are still checked :-(.

Hayato Kuroda
FUJITSU LIMITED

pgsql-hackers by date:

Previous
From: Seino Yuki
Date:
Subject: Re: Feature improvement for pg_stat_statements
Next
From: Masahiko Sawada
Date:
Subject: Re: Add Information during standby recovery conflicts