Why am I getting the postgres error "PGError: ERROR: permission denied for relation"

Issue

You are seeing "PGError: ERROR: permission denied for relation" in your application logs

Resolution

Heroku Postgres hobby tier databases have row limits enforced. When you are over your row limit and attempt to insert data you will see this error. Upgrade to a production tier database to remove this constraint or reduce the number of total rows.