Im using heroku and postgres. Local is working fine but whenever the user (any user) performs an INSERT on stage it crashes. This is the message i get:
PG:InsufficientPrivilege: ERROR: permission denied for relation .. INSERT INTO..
I granted privileges to public on the required tables but it doesn´t make a difference. Any insight would be useful. Thanks.

I know it's waaaaay late, but I just ran into this issue and I believe the problem is that you have exceeded the number of rows allowed for your DB. In my case, I was using a Hobby-dev plan and the limit is 10k rows. If you run
heroku pg:infoyou will see something like:With the
Write access revokedbeing the key piece of information. Upgrading your DB (or deleting some data) should solve this.