QUERY PLAN
HashAggregate (cost=302.68..304.57 rows=189 width=12)
Group Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..301.41 rows=253 width=8)
Filter: (client_id = ANY ('{1181,497,287,3338,592,582,1207}'::integer[]))