QUERY PLAN
HashAggregate (cost=361.94..362.03 rows=9 width=4)
Group Key: client.sales_rep
-> Hash Left Join (cost=164.85..360.41 rows=612 width=4)
Hash Cond: (p.client_id = client.id)
-> Hash Join (cost=20.80..214.75 rows=612 width=4)
Hash Cond: (p.id = prr.project_id)
-> Seq Scan on tbl_projects p (cost=0.00..172.55 rows=3055 width=8)
-> Hash (cost=13.15..13.15 rows=612 width=4)
-> Seq Scan on tbl_project_remind_receivers prr (cost=0.00..13.15 rows=612 width=4)
Filter: (user_id = 1001)
-> Hash (cost=119.58..119.58 rows=1958 width=8)
-> Seq Scan on tbl_clients client (cost=0.00..119.58 rows=1958 width=8)