QUERY PLAN
HashAggregate (cost=879.35..882.65 rows=330 width=12)
Group Key: client_id
-> Bitmap Heap Scan on tbl_work_logs (cost=45.85..877.44 rows=383 width=8)
Recheck Cond: (client_id = ANY ('{2806,46,402,3312,876,989,2112,1436,2145,1563}'::integer[]))
Filter: (NOT is_draft)
-> Bitmap Index Scan on tbl_work_logs_client_id_idx (cost=0.00..45.75 rows=384 width=0)
Index Cond: (client_id = ANY ('{2806,46,402,3312,876,989,2112,1436,2145,1563}'::integer[]))