gpt4 book ai didi

postgresql - 如何使用TerraForm升级RDS实例的PostgreSQL版本?

转载 作者:行者123 更新时间:2023-11-29 12:16:57 25 4
gpt4 key购买 nike

我当前的 RDS 实例运行的是 PostgreSQL 版本 9.6.3,但我想将其升级到版本 10.1。但是,当我在我的 TerraForm 配置中设置新版本号并设置 allow_major_version_upgrade为真,我遇到了以下错误:

Error: Error applying plan:

1 error(s) occurred:

* aws_db_instance.db_instance: 1 error(s) occurred:

* aws_db_instance.db_instance: Error modifying DB Instance db-example: InvalidParameterCombination: Cannot find upgrade path from 9.6.3 to 10.1.
status code: 400, request id: <id>

事实上,当我将 9.6.4 设置为新版本号时,我收到了类似的错误消息 - 这已经令人困惑,因为 auto_minor_version_upgrade 也设置为 true,但实例仍在9.6.3.

如您所见,我仍然需要掌握很多 RDS 和 PostgreSQL,因此也欢迎提供任何有助于我理解问题的背景信息。


编辑:

just allow_major_version_upgrade 设置为 true 而没有实际修改版本导致此错误:

* aws_db_instance.db_instance: Error modifying DB Instance db-example: InvalidParameterCombination: No modifications were requested

最佳答案

正如@ydaetskcoR 指出的,您只能升级到 RDS 实际支持的 PostgreSQL 版本,which is 9.6.5 at the moment .

由于 auto_minor_version_upgrade 而从 9.6.3 升级到 9.6.5 也不会在支持后立即发生,如亚马逊前一段时间发送的电子邮件中所述:

Beginning January 22 2018, if your database instances have the “Auto Minor Version Upgrade” option enabled, we will automatically upgrade your PostgreSQL database instances, using the same scheme mentioned above, during your maintenance window. If you do not wish to apply these upgrades at this point in time, please set the “Auto Minor Version Upgrade” option to "No" before January 20, 2018.

关于postgresql - 如何使用TerraForm升级RDS实例的PostgreSQL版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48184936/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com