numerus/verify/contact_phone.sql

14 lines
348 B
PL/PgSQL

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