I am enabling Row level security on a table. I want the row security only on SELECT. So that other users can insert and update their respective records. I am using postgreSQL and I am pretty much beginner for 'ROW-LEVEL-SECURITY'. I am trying it with following commands. Please update if I am mixing PSQL and MySQL commands. or any better way to achieve it.
ALTER TABLE important_table ENABLE ROW LEVEL SECURITY;
It works fine but then when I specify for select,
ALTER TABLE important_table SET ROW SECURITY FOR SELECT;
I get error with it:
Error: syntax error at or near "ROW"