QUERY PLAN
GroupAggregate (cost=331.45..331.54 rows=5 width=12)
Group Key: case_id
-> Sort (cost=331.45..331.46 rows=5 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..331.39 rows=5 width=4)
Filter: (case_id = ANY ('{8268,8267,8266,8265,8260}'::integer[]))