QUERY PLAN
GroupAggregate (cost=455.99..457.86 rows=101 width=12)
Group Key: client_id
-> Sort (cost=455.99..456.27 rows=115 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..452.05 rows=115 width=8)
Filter: (client_id = ANY ('{399,473,644,2126,2120,1946,2162,2169,1207,1355,1205,629,1250,1391,1358,1349,1310,2042,577,914}'::integer[]))