It sounds like you want row level security-https://www.postgresql.org/docs/9.6/ddl-rowsecurity.htmlBut, you will need to define separate roles on the database and ensure that the users and connecting with separate roles. The db can't magically know about the permissions on the OS side.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных