Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
12 lines
1.3 KiB
Plaintext
12 lines
1.3 KiB
Plaintext
select relname, relrowsecurity, relforcerowsecurity from pg_class (invoice, receipt)
|
|
invoice rowsecurity=true force=true
|
|
receipt rowsecurity=true force=true
|
|
|
|
select tablename, policyname, cmd, qual, with_check from pg_policies
|
|
table=invoice policy=hibernate_tenant_isolation cmd=ALL
|
|
using (((tenant_id)::text = ((NULLIF(current_setting('hibernate.tenant_id'::text, true), ''::text))::character varying(255))::text) OR COALESCE((NULLIF(current_setting('hibernate.tenant_id_root'::text, true), ''::text))::boolean, false))
|
|
with check (((tenant_id)::text = ((NULLIF(current_setting('hibernate.tenant_id'::text, true), ''::text))::character varying(255))::text) OR COALESCE((NULLIF(current_setting('hibernate.tenant_id_root'::text, true), ''::text))::boolean, false))
|
|
table=receipt policy=hibernate_tenant_isolation cmd=ALL
|
|
using (((tenant_id)::text = ((NULLIF(current_setting('hibernate.tenant_id'::text, true), ''::text))::character varying(255))::text) OR COALESCE((NULLIF(current_setting('hibernate.tenant_id_root'::text, true), ''::text))::boolean, false))
|
|
with check (((tenant_id)::text = ((NULLIF(current_setting('hibernate.tenant_id'::text, true), ''::text))::character varying(255))::text) OR COALESCE((NULLIF(current_setting('hibernate.tenant_id_root'::text, true), ''::text))::boolean, false))
|