QUERY PLAN
HashAggregate (cost=661.43..663.64 rows=221 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=44.76..660.21 rows=243 width=8)
Recheck Cond: (client_id = ANY ('{3081,2205,1933,2616,2538,982,146,1661,3334,3327}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..44.70 rows=243 width=0)
Index Cond: (client_id = ANY ('{3081,2205,1933,2616,2538,982,146,1661,3334,3327}'::integer[]))