Link to home
Start Free TrialLog in
Avatar of qu3nt1n
qu3nt1n

asked on

PostgreSQL ERROR: permission denied for relation

I am designing a website in PHP 5, HTML, CSS, etc using a PostgreSQL 8.1 database on the back-end.

I want to add a new record a new table (confirmemail) I've created in my PUBLIC schema using the "insert into" command.  I can add it from within the PostgreSQL EMS SQL Editor, however when I try to do the same thing through my PHP functions/classes, I keep getting the following error message:

Query failed: ERROR:  permission denied for relation confirmemail.

This is totally baffling me.  Yes, I've set the public grants onthe confirmemail table and I've checked over the table properties to look for any anomalies.  What's worse is that this behaviour seems to be happening to any new tables I add to the database.

Does anybody have any ideas or come across this?
ASKER CERTIFIED SOLUTION
Avatar of huji
huji
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial