LoginSignup
0
0

More than 5 years have passed since last update.

Heroku Postgresで「PG::InsufficientPrivilege: ERROR: permission denied for relation」エラー

Posted at

Heroku Postgresでレコード挿入時に「PG::InsufficientPrivilege: ERROR: permission denied for relation」エラーが発生した。

Postgresの権限周りかな?と思って色々と調べた結果、参考記事(1)の通りレコード数がプラン(hobby-dev)を超過していたのが原因だった…。

(2)にHeroku Postgresのプラン一覧がある。
契約していたFreeプランだと10,000レコードが上限だった。
1個上のBasicにすると、10,000,000とレコード数が跳ね上がるので、趣味の開発でコストはあまりかけたくないが、とりあえず金で解決することにする…。

ちなみに、よくよくメールを掘ったら

[warning] Database disruption imminent, row limit exceeded for hobby-dev database on Heroku app xxxxxx

という警告のメールが届いてた。。

参考

(1) https://devcenter.heroku.com/articles/postgres-logs-errors#pgerror-permission-denied-for-relation

(2) https://elements.heroku.com/addons/heroku-postgresql

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