Also FYI, PostgreSQL has Row Level Security available. In a nutshell, you set up db users and RLS policies for those users. If RLS determines that a user doesn’t have access to a row, it will act like that row doesn’t exist. (Or prevent DELETE, INSERT, etc., based on your policy.)