0
0

More than 3 years have passed since last update.

PostgreSQL バージョン不整合によるエラーの修正方法

Posted at

AWS の RDS を使っていて、PostgreSQL のバージョンが 12 だが、EC2のバージョンが 10 なので、psql のバージョンが古いために、\d <テーブル名> で、以下のエラーが出力される。

ERROR:  column c.relhasoids does not exist
LINE 1: ...riggers, c.relrowsecurity, c.relforcerowsecurity, c.relhasoi...

postgresql12のレポジトリを追加して、現在の postgresql10パッケージを削除、レポジトリを直接指定してpostgresqlのバージョン12をインストールしたら、直った。

(参考)
https://techviewleo.com/install-postgresql-12-on-amazon-linux/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0