QUERY PLAN
GroupAggregate (cost=98.56..98.70 rows=8 width=12)
Group Key: case_id
-> Sort (cost=98.56..98.58 rows=8 width=4)
Sort Key: case_id
-> Seq Scan on tbl_pre_sales (cost=0.00..98.44 rows=8 width=4)
Filter: (case_id = ANY ('{8280,8279,8264,8262,8273,8272,8271,8263}'::integer[]))