RDS for PostgreSQLのメジャーバージョンアップが失敗する

0

RDS for PostgreSQLのバージョン11.22をコンソールの変更からアップグレードを試みています。 バージョン12.17、13.13、16.1へのアップグレードを試しましたが、失敗しました。 イベントのシステムノートは以下の通りです。

Database instance is in a state that cannot be upgraded: Postgres cluster is in a state where pg_upgrade can not be completed successfully.

対応策をご教示ください。

クラス:db.t3.micro 空き容量:20GB シングルAZ ストレージタイプ:汎用 SSD (gp2)

已提問 2 個月前檢視次數 306 次
2 個答案
0
已接受的答案

ログを見落としており、ログの再確認で解消できたので、 備忘録として内容記載します。

pg_upgrade_internal.logに下記が出力されていました。

fatal
Your installation contains tables declared WITH OIDS, which is not supported
anymore. Consider removing the oid column using
    ALTER TABLE ... SET WITHOUT OIDS;
A list of tables with the problem is in the file:
    tables_with_oids.txt

下記を参考に、OIDを削除することでバージョン12.17へのアップグレードに成功しました。 https://dba.stackexchange.com/questions/259359/eliminating-oids-while-upgrading-postgresql-from-9-4-to-12

已回答 2 個月前
0

Stackoverflowの回答にあるようにコマンドもしくはコンソールで詳細なログを確認する必要があります。
https://stackoverflow.com/a/70805896
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Procedural.Viewing.html

アップグレード方法は以下のブログが参考になると思います。
https://www.cloudbuilders.jp/articles/2276/

profile picture
專家
已回答 2 個月前
  • 回答ありがとうございます。 ログを再確認したところ、原因解明出来ました。

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南