QUERY PLAN
GroupAggregate (cost=408.59..408.61 rows=1 width=12)
Group Key: case_id
-> Sort (cost=408.59..408.59 rows=1 width=4)
Sort Key: case_id
-> Seq Scan on tbl_implement_records (cost=0.00..408.58 rows=1 width=4)
Filter: ((created_by = 1000) AND (case_id = ANY ('{8656,8653,8658,8655,8657,8654,8648,8634,8650,8652}'::integer[])))