我应该更改 RDS postgresql 中的参数“idle_in_transaction_session_timeout”。
据我所知,使用 set 命令(“SETidle_in_transaction_session_timeout=5s”)我只会在会话级别更改它。但我需要在所有数据库上永久更改它。我找不到执行此操作的命令。
以超级用户连接服务器后,即可进行如下配置。该参数不需要重启。
postgres=# alter system set idle_in_transaction_timeout to '5s';
postgres=# select pg_reload_conf();