QUERY PLAN
HashAggregate (cost=854.82..857.94 rows=312 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.69..853.03 rows=358 width=8)
Recheck Cond: (client_id = ANY ('{399,2120,1283,39,146,1637,1158,344,574,1958}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..45.60 rows=358 width=0)
Index Cond: (client_id = ANY ('{399,2120,1283,39,146,1637,1158,344,574,1958}'::integer[]))