QUERY PLAN
GroupAggregate (cost=96.64..96.76 rows=7 width=12)
Group Key: case_id
-> Sort (cost=96.64..96.65 rows=7 width=4)
Sort Key: case_id
-> Seq Scan on tbl_pre_sales (cost=0.00..96.54 rows=7 width=4)
Filter: (case_id = ANY ('{8279,8262,8273,8272,8271,8264,8263}'::integer[]))