From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Sanjay Minni <sanjay(dot)minni(at)gmail(dot)com> |
Cc: | "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: RLS and Table Inheritance |
Date: | 2024-09-12 14:19:48 |
Message-ID: | 4016747.1726150788@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sanjay Minni <sanjay(dot)minni(at)gmail(dot)com> writes:
> Do RLS policies defined at the parent, work on the child (in Table
> inheritance).
> At the parent I have a column 'site_id' with an RLS policy that only rows
> with site_id = current_setting(curr_site_id) would be accessible.
> However the policy defined at the parent does not work for me in inherited
> tables. Is it intended that way ?
If you mean when accessing the child tables directly, yes.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Durgamahesh Manne | 2024-09-12 14:23:45 | Re: Performance degrade on insert on conflict do nothing |
Previous Message | Andreas Joseph Krogh | 2024-09-12 14:13:26 | Re: Effects of REVOKE SELECT ON ALL TABLES IN SCHEMA pg_catalog FROM PUBLIC |