我需要修改postgres数据库上的max_standby_streaming_delay和max_standby_archive_delay参数,以允许运行更长时间的读查询。我试图在AWS RDS中做到这一点,但它不允许我这样做,并一直说这些参数是不可修改的:
aws rds modify-db-parameter-group \ 254 ↵
--db-parameter-group-name myparametergroup \
--parameters "ParameterName=max_standby_archive_delay,ParameterValue=-1,ApplyMethod=immediate"
An error occurred (InvalidParameterValue) when calling the ModifyDBParameterGroup operation: The parameter max_standby_archive_delay cannot be modified.有什么办法绕过这一点吗?
发布于 2021-02-18 01:14:54
您不能修改默认参数组。单击“创建参数组”,选择Postgres服务器版本-这将复制默认参数组中的所有值。
修改复制组中的值,然后修改DB实例-设置这个新参数组。
在我的例子中,修改我的已读副本实例只需要5分钟。
https://stackoverflow.com/questions/65192727
复制相似问题