thank for taking the time to try answer/understand this question.
I am using AWS Aurora Postgres (Engine version: 13.4) database. I referred to this document for creating readwrite
and readonly
roles for 2 new rdsiam
users -> "dev_ro" and "dev_rw". I have granted readwrite
role to "dev_rw" and readonly
to "dev_ro". The additional changes are:
myschema
is "public" - which is my default schema With this in mind, here is what I have done:
jobs
table can never be emptySELECT * FROM graphile_worker.jobs
in my IDE (dbeaver - shouldn't matter, I think)I don't know why this is happening. I double-checked, both "dev_ro/w" (through the roles) and superuser, have:
CONNECT
to database (without doubt) SELECT
on all tables of graphile_worker
schema USAGE
on the graphile_worker
schemagraphile_worker.migrations
and the migration records show up as expected (on both devro/w and superuser)!Please let me know if there is any more information that I can provide to help debug this issue.
Removing Row-Level Security (RLS) solved this issue. Thanks @Hambone for asking the right question.
RLS is removed by executing
ALTER ROLE <username> WITH BYPASSRLS
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.