QUERY PLAN
GroupAggregate (cost=54.96..54.98 rows=1 width=12)
Group Key: task_group_id
-> Sort (cost=54.96..54.97 rows=1 width=4)
Sort Key: task_group_id
-> Seq Scan on tbl_tasks (cost=0.00..54.95 rows=1 width=4)
Filter: ((status = 0) AND (task_group_id = ANY ('{195,194,193,192,191,190,189,188,187,178}'::integer[])))