numerus/verify/contact_web.sql

14 lines
338 B
PL/PgSQL

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