I have remote database server and I have different roles and users. for example I have database test
and schema test_schema
and table test1
.
I am connected to the database using test_user
and I am querying the table like below.
select * from test_schema.test1
It works fine sometime and some time it fails with below error.
InsufficientPrivilegeError: permission denied for schema test_schema
Here the actual problem is inconsistency of the error, if it does not have permission why it works some time?
Additional info:
- using python3
- using asyncpg