troubleshooting Question

PostgreSQL ERROR: permission denied for relation

Avatar of qu3nt1n
qu3nt1n asked on
PHPPostgreSQL
3 Comments3 Solutions6323 ViewsLast Modified:
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?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros