QUERY PLAN
HashAggregate (cost=334.93..338.62 rows=369 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=1046 width=8)
Filter: (client_id = ANY ('{3337,189,2182,101,54,1492,149,57,20,1307}'::integer[]))