QUERY PLAN
GroupAggregate (cost=331.73..332.85 rows=62 width=12)
Group Key: client_id
-> Sort (cost=331.73..331.89 rows=67 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..329.69 rows=67 width=8)
Filter: (client_id = ANY ('{2806,46,402,3312,876,989,2112,1436,2145,1563}'::integer[]))