A user needs to have access to a table in order to perform any actions on it.
Granting user access to a table
Getting ready
Make sure that you have the appropriate roles defined, and that privileges are revoked from the PUBLIC role:
CREATE GROUP webreaders;
CREATE USER tim;
CREATE USER bob;
REVOKE ALL ON SCHEMA someschema FROM PUBLIC;
How to do it…
We had to grant access to the schema in order to allow access to the table. This suggests that access to a given schema can be used as a fast and extreme way of preventing any access to any object in that schema...