numerus/verify/contact_email.sql

14 lines
348 B
PL/PgSQL

-- Verify numerus:contact_email on pg
begin;
select contact_id
, email
from numerus.contact_email
where false;
select 1 / count(*) from pg_class where oid = 'numerus.contact_email'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.contact_email'::regclass;
rollback;