QUERY PLAN
GroupAggregate (cost=353.71..354.83 rows=62 width=12)
Group Key: client_id
-> Sort (cost=353.71..353.87 rows=67 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..351.67 rows=67 width=8)
Filter: (client_id = ANY ('{2536,3380,109,2157,2590,29,1835,1043,100,582}'::integer[]))