| GroupAggregate (cost=4.87..76.36 rows=1 width=477) |
| Group Key: p.id |
| -> Nested Loop Left Join (cost=4.87..32.57 rows=1 width=365) |
| Join Filter: (sl.project_id = p.id) |
| -> Nested Loop Left Join (cost=0.56..16.61 rows=1 width=357) |
| Join Filter: (arrive.project_id = p.id) |
| -> Index Scan using tbl_projects_pkey on tbl_projects p (cost=0.28..8.30 rows=1 width=349) |
| Index Cond: (id = 4103) |
| -> Index Only Scan using tbl_work_logs_arrive_project_end_at_idx on tbl_work_logs arrive (cost=0.28..8.30 rows=1 width=12) |
| Index Cond: (project_id = 4103) |
| -> Bitmap Heap Scan on tbl_work_logs sl (cost=4.31..15.93 rows=3 width=12) |
| Recheck Cond: (project_id = 4103) |
| -> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..4.31 rows=3 width=0) |
| Index Cond: (project_id = 4103) |
| SubPlan 1 |
| -> Aggregate (cost=43.72..43.73 rows=1 width=32) |
| -> Seq Scan on tbl_invoices i (cost=0.00..43.71 rows=1 width=6) |
| Filter: (project_id = p.id) |