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 had this problem caused by over 10000 rows, I was using Hobby Dev (free until November 2022), I upgraded to Basic (paid), I understand this might not be solution for everyone
Hobby Dev 10,000 row limit Mini 10,000 row limit Basic 10,000,000 row limit
https://elements.heroku.com/addons/heroku-postgresql
Once I upgraded