admin
CREATE POLICY
Defines a row visibility predicate. Enable row-level security separately and grant table access; owners normally bypass policies.
Formal Syntax & Structure
sql syntaxsql
CREATE POLICY bm_read ON bm_lab.items FOR SELECT USING (owner_name = current_user);Working Example
Example Snippetsql
-- Disposable PostgreSQL lab only; see LAB.md.CREATE POLICY bm_read ON bm_lab.items FOR SELECT USING (owner_name = current_user);