QUERY PLAN
HashAggregate (cost=752.72..755.35 rows=263 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.22..751.25 rows=295 width=8)
Recheck Cond: (client_id = ANY ('{399,1661,2120,2162,2169,1465,2147,1283,2095,39}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..45.15 rows=296 width=0)
Index Cond: (client_id = ANY ('{399,1661,2120,2162,2169,1465,2147,1283,2095,39}'::integer[]))