QUERY PLAN
GroupAggregate (cost=0.28..57.78 rows=1 width=20)
Group Key: project_id
-> Index Scan using tbl_work_logs_arrive_project_end_at_idx on tbl_work_logs (cost=0.28..57.76 rows=1 width=24)
Index Cond: (project_id = ANY ('{4146,3957,3854,3796,4174,4172,4170,4169,4168,4167,4166,4144,4161,4164,4151,4157,4155,4145,4139,4142}'::integer[]))