| GroupAggregate (cost=109.64..109.68 rows=1 width=53) |
| Group Key: pt.product_type_id, pt.name |
| -> Sort (cost=109.64..109.65 rows=1 width=26) |
| Sort Key: pt.product_type_id, pt.name |
| -> Hash Join (cost=31.06..109.63 rows=1 width=26) |
| Hash Cond: (pt.project_id = tbl_projects.id) |
| -> Seq Scan on tbl_project_product_types pt (cost=0.00..69.09 rows=3609 width=30) |
| -> Hash (cost=31.04..31.04 rows=1 width=4) |
| -> Bitmap Heap Scan on tbl_projects (cost=4.34..31.04 rows=1 width=4) |
| Recheck Cond: (client_id = 982) |
| Filter: ((bargain_date >= '2026-01-01'::date) AND (bargain_date < '2027-01-01 00:00:00'::timestamp without time zone) AND (bargain_date >= '2026-01-01'::date) AND (bargain_date < '2027-01-01 00:00:00'::timestamp without time zone) AND (created_by = 1001) AND (project_status = 3) AND (created_by = ANY ('{5332,1001,5087,5467,5300,5311,5295,1013,5476,1004,1005,5449}'::integer[]))) |
| -> Bitmap Index Scan on tbl_projects_client_id_idx (cost=0.00..4.34 rows=8 width=0) |
| Index Cond: (client_id = 982) |