PostgreSQL - infinite recursion detected in policy for relation
问题 In database are 3 tables - Department, Employee, Account. One department has many employees. Employee contain column department_id bigint Account table contain columns login varchar , employee_id bigint and used for binding Postgres users (roles) to rows in Employee. My aim is to let users see and work with only those rows of Employee for which the value of department_id is the same as for the user. There must be something like: CREATE POLICY locale_policy ON employee TO justuser, operator