QUERY PLAN
GroupAggregate (cost=283.08..283.47 rows=22 width=12)
Group Key: client_id
-> Sort (cost=283.08..283.14 rows=23 width=8)
Sort Key: client_id
-> Seq Scan on tbl_cases (cost=0.00..282.56 rows=23 width=8)
Filter: (client_id = ANY ('{3337,2815,3336,3333,3338}'::integer[]))