Skip to content

lock_timeout parameter

0

I need to set lock_timeout parameter in my Postgres 14 RDS at instance level but its not listed in the parameter group. Setting it at instance level and not at query level is very much needed as a part of our design. Please advise how I can do so.

asked 2 years ago2K views
2 Answers
1

Hi,

Could you try setting lock_timeout at the database level?

alter database postgres set lock_timeout = '30s';
AWS
answered 2 years ago
0

Hi, I believe that setting of deadlock_timeout in your parameter group witll produce what you expect: timeout if a transaction in stuck on a lock for too long.

See https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Parameters.html

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.