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/