0

Based on 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). Are there any alternatives to this?

1 Answer 1

1

You can change it for your own user:

alter user current_user set idle_in_transaction_session_timeout = '5min'; 
Sign up to request clarification or add additional context in comments.

2 Comments

I am not sure this is working. If I run show idle_in_transaction_session_timeout; it still shows me 0 and all the sessions that are idle in transaction haven't been terminated after 5 minutes.
I think you need to disconnect and re-connect. Existing sessions won't be affected as far as I know

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.