QUERY PLAN
GroupAggregate (cost=96.60..96.67 rows=4 width=12)
Group Key: case_id
-> Sort (cost=96.60..96.61 rows=4 width=4)
Sort Key: case_id
-> Seq Scan on tbl_pre_sales (cost=0.00..96.56 rows=4 width=4)
Filter: ((NOT is_draft) AND (case_id = ANY ('{9255,9256,9259,9263}'::integer[])))