QUERY PLAN
GroupAggregate (cost=392.48..392.66 rows=10 width=12)
Group Key: case_id
-> Sort (cost=392.48..392.51 rows=10 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..392.32 rows=10 width=4)
Filter: (case_id = ANY ('{8656,8653,8658,8655,8657,8654,8648,8634,8650,8652}'::integer[]))