| GroupAggregate (cost=20.85..20.91 rows=2 width=322) |
| Group Key: pt.product_type_id, pt.name |
| -> Sort (cost=20.85..20.85 rows=2 width=318) |
| Sort Key: pt.product_type_id, pt.name |
| -> Hash Join (cost=8.17..20.84 rows=2 width=318) |
| Hash Cond: (pt.project_id = tbl_projects.id) |
| -> Seq Scan on tbl_project_product_types pt (cost=0.00..12.10 rows=210 width=322) |
| -> Hash (cost=8.16..8.16 rows=1 width=4) |
| -> Index Scan using tbl_projects_client_id_idx on tbl_projects (cost=0.14..8.16 rows=1 width=4) |
| Index Cond: (client_id = 1) |
| Filter: (project_status = 3) |