| GroupAggregate (cost=41.19..42.02 rows=25 width=214) |
| Group Key: ci.id |
| -> Merge Left Join (cost=41.19..41.33 rows=25 width=160) |
| Merge Cond: (ci.id = c.client_industry) |
| -> Sort (cost=1.83..1.89 rows=25 width=150) |
| Sort Key: ci.id |
| -> Seq Scan on tbl_client_industries ci (cost=0.00..1.25 rows=25 width=150) |
| -> Sort (cost=39.36..39.36 rows=1 width=14) |
| Sort Key: c.client_industry |
| -> Nested Loop (cost=4.62..39.35 rows=1 width=14) |
| -> Bitmap Heap Scan on tbl_projects p (cost=4.34..31.04 rows=1 width=14) |
| 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) |
| -> Index Scan using tbl_clients_pkey on tbl_clients c (cost=0.28..8.29 rows=1 width=8) |
| Index Cond: (id = 982) |