QUERY PLAN
HashAggregate (cost=340.51..340.62 rows=11 width=4)
Group Key: client.sales_rep
-> Hash Left Join (cost=326.48..339.35 rows=464 width=4)
Hash Cond: (p.client_id = client.id)
-> Hash Join (cost=198.11..209.77 rows=464 width=4)
Hash Cond: (prr.project_id = p.id)
-> Seq Scan on tbl_project_remind_receivers prr (cost=0.00..10.44 rows=464 width=4)
Filter: (user_id = 1001)
-> Hash (cost=163.05..163.05 rows=2805 width=8)
-> Seq Scan on tbl_projects p (cost=0.00..163.05 rows=2805 width=8)
-> Hash (cost=104.83..104.83 rows=1883 width=8)
-> Seq Scan on tbl_clients client (cost=0.00..104.83 rows=1883 width=8)