In my pg migrations, I execute the following SQL:
grant all on all tables in schema denolandia to my_user;
...<create-table>
alter table denolandia.packages force row level security;
create policy update_packages on denolandia.packages for insert
with check (
false
);
When I log into Postgres as my_user
via psql
and do a \d
on my schema, I see that on denolandia.packages
table, the following is reported:
Policies (row security disabled):
POLICY "update_packages" FOR INSERT
WITH CHECK (false)
I just commanded force row level security
, so why is my policy disabled?
Thanks!