Row level security does not work for table owner

后端 未结 1 414
忘掉有多难
忘掉有多难 2021-01-28 12:29

I have a table, customer on which I did the following:

ALTER TABLE customer FORCE ROW LEVEL SECURITY;
CREATE POLICY customer_rls ON  customer USING          


        
相关标签:
1条回答
  • 2021-01-28 12:37

    You forgot to enable row level security for the table.

    ALTER TABLE customer enable ROW LEVEL SECURITY;
    

    force only makes sure that RLS is applied if enabled, it does not enable RLS on the table.

    Online example: https://rextester.com/TCLZ82421

    0 讨论(0)
提交回复
热议问题