Test as role
SET ROLE makes the session act as another role. A denied statement raises 42501. analyst can read products already.
task
analyst can read products. SET ROLE analyst and try to UPDATE one; it must fail.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
SET ROLE makes the session act as another role. A denied statement raises 42501. analyst can read products already.
analyst can read products. SET ROLE analyst and try to UPDATE one; it must fail.