1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PG::InsufficientPrivilege: ERROR on heroku

Posted at

Heroku で動かしている app で PG::InsufficientPrivilege: ERROR: permission denied for relation references のエラー

Free プランである Hobby-dev は 10000 rows までしかデータをいれることができないので、
そのためにカラム追加ができなくなり、このエラーが起きていた。

なので、それ以上のカラム追加をする場合はアップグレードをすれば良い。

作業は 基本的にはこちらのマニュアル通りに進めれば良い。
https://devcenter.heroku.com/articles/upgrading-heroku-postgres-databases

  • 3種類アップグレードの方法があるが、今回はこちらでアップグレード Upgrade with PG copy (default)

  • HEROKU_POSTGRESQL_PINKheroku pg:wait で出力された自分の DBのスラッグ

  • sushi は自分の app のスラッグ

  • アプリケーション間の移行は スッテプ 3 ではなく 4

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?