Is there a timeout for idle PostgreSQL connections?

前端 未结 5 1382
暗喜
暗喜 2020-11-27 10:07
1 S postgres  5038   876  0  80   0 - 11962 sk_wai 09:57 ?        00:00:00 postgres: postgres my_app ::1(45035) idle                                                          


        
5条回答
  •  無奈伤痛
    2020-11-27 10:27

    if you are using postgresql 9.6+, then in your postgresql.conf you can set

    idle_in_transaction_session_timeout = 30000 (msec)

提交回复
热议问题