我想为 Heroku Postgres 数据库设置 idle_in_transaction_session_timeout

I would like to set idle_in_transaction_session_timeout for a Heroku Postgres database

基于this solution I would like to change the idle_in_transaction_session_timeout in Heroku Postgres, however I do not have the rights as a superuser (see Heroku default permissions)。除了这个还有其他选择吗?

您可以为自己的用户更改它:

alter user current_user set idle_in_transaction_session_timeout = '5min';