QUERY PLAN
HashAggregate (cost=334.44..337.56 rows=312 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..331.60 rows=568 width=8)
Filter: (client_id = ANY ('{982,90,1181,497,287,1207,582,592}'::integer[]))