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