Checking for row-level security
Amelia wasn't blocked from seeing any columns in the table; perhaps she can't see some rows, and you decide to check for any row-level security that might be applied to the table via the system row level security policy view, SVV_RLS_POLICY
.
This exercise is part of the course
Introduction to Redshift
Exercise instructions
- Select the
polname
aspolicy_name
,polatts
ascolumn_details
, andpolqual
ascondition
. - From the system row level security policy view.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
-- Select the policy name
SELECT ___ AS policy_name,
-- Select the column details
polatts AS ___,
-- Select the policy condition
___ as ___
-- FROM the system row level security policy view
FROM ___;