QUERY PLAN
HashAggregate (cost=662.76..664.95 rows=219 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=44.76..661.55 rows=241 width=8)
Recheck Cond: (client_id = ANY ('{1661,146,982,2538,2616,1933,3081,3372,3364,3344}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..44.70 rows=241 width=0)
Index Cond: (client_id = ANY ('{1661,146,982,2538,2616,1933,3081,3372,3364,3344}'::integer[]))