-- One DB role per region/user; never let the model SET roles or session variables.
CREATE ROLE agent_emea LOGIN PASSWORD 'x' IN ROLE agent_ro;
ALTER ROLE agent_emea SET default_transaction_read_only = on;
ALTER TABLE tpch.orders ENABLE ROW LEVEL SECURITY;
CREATE POLICY emea_only ON tpch.orders FOR SELECT TO agent_emea
  USING (o_custkey IN (
    SELECT c.c_custkey FROM tpch.customer c
    JOIN tpch.nation n ON c.c_nationkey = n.n_nationkey
    JOIN tpch.region r ON n.n_regionkey = r.r_regionkey
    WHERE r.r_name = 'EUROPE'));
-- agent_ro (no policy) now sees no orders rows: add a permissive policy for it if needed.