QUERY PLAN
GroupAggregate (cost=50.59..50.76 rows=10 width=12)
Group Key: project_id
-> Sort (cost=50.59..50.61 rows=10 width=8)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=12.94..50.42 rows=10 width=8)
Recheck Cond: (project_id = ANY ('{3805,3814,3811}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_project_id_idx (cost=0.00..12.94 rows=10 width=0)
Index Cond: (project_id = ANY ('{3805,3814,3811}'::integer[]))