camper/verify/company_geography.sql

17 lines
724 B
MySQL
Raw Normal View History

-- Verify camper:company_geography on pg
begin;
select company_id
, geog
from camper.company_geography
where false;
select 1 / count(*) from pg_class where oid = 'camper.company_geography'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'guest_ok' and polrelid = 'camper.company_geography'::regclass;
select 1 / count(*) from pg_policy where polname = 'insert_to_company' and polrelid = 'camper.company_geography'::regclass;
select 1 / count(*) from pg_policy where polname = 'update_company' and polrelid = 'camper.company_geography'::regclass;
select 1 / count(*) from pg_policy where polname = 'delete_from_company' and polrelid = 'camper.company_geography'::regclass;
rollback;