QUERY PLAN
GroupAggregate (cost=332.54..333.99 rows=79 width=12)
Group Key: client_id
-> Sort (cost=332.54..332.76 rows=88 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=88 width=8)
Filter: (client_id = ANY ('{141,2736,2182,24,2806,2242,3179,46,530,2166}'::integer[]))