A user needs to have access to a table in order to perform any action 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.
How to do it...
Grant access to the schema containing the table, as follows:
GRANT USAGE ON someschema TO somerole;
GRANT SELECT, INSERT, UPDATE, DELETE ON someschema.sometable TO somerole;
GRANT somerole TO someuser, otheruser;