I have an INSERT
statement.
This statement works properly when using superuser.
I have a (non-super) user with SELECT
, INSERT
privileges on the targeted table.
This user has CONNECT
privileges to the database.
This user is able to perform SELECT
queries to this table and others.
However, this user can't perform INSERT
statement to the targeted table.
I may not be all that good with Postgres but I really can't see the problem here.
I have tried GRANTing ALL PRIVILEGES to the said user, but still it didn't work.
Thoughts?
EDIT (per request):
GRANT
statement: GRANT SELECT, INSERT ON TABLE users_log TO user
The GRANT
statement seems to work fine when I do it.