There are many users connecting to database. I have to apply Row Level Security(RLS) only for one user david, all other users should be able to access table as usual.
ALTER TABLE accounts ENABLE ROW LEVEL SECURITY;
CREATE POLICY accounts_web ON accounts TO david USING (id = current_setting('rls.tenant_id' )::uuid);
I can create a policy like CREATE POLICY accounts_no_rls ON accounts TO Michel USING (true);
but i will have to create a policy for each users.
Is it possible with just two policy (one policy for david and 2nd policy for all other users) ?