Reputation: 1
I created a login role in Postgres then I tried to give permissions to modify specified rows on a table using row level security. I've tried thousands times but it doesn't work. I have only one table.
Upvotes: 0
Views: 1928
Reputation: 5930
You didn't give enough information on what steps you took to come to your conclusion that it doesn't work, so I'll cover both cases:
Note that row-level security must be enabled on the table (using ALTER TABLE ... ENABLE ROW LEVEL SECURITY) in order for created policies to be applied.
ALTER TABLE [..] FORCE ROW LEVEL SECURITY
, but you can't do that for superuser.Upvotes: 3