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 ('{4174,4172,4170,4169,4168,4167,4166,4144,4161,4164,4151,4157,4155,4142,4127,4098,4096,4079,4078,3950}'::integer[]))