QUERY PLAN
GroupAggregate (cost=75.93..76.21 rows=15 width=12)
Group Key: task_group_id
-> Sort (cost=75.93..75.98 rows=17 width=4)
Sort Key: task_group_id
-> Seq Scan on tbl_tasks (cost=0.00..75.59 rows=17 width=4)
Filter: ((parent_id IS NULL) AND (status = 0) AND (task_group_id = ANY ('{203,139,106,96,94,90,89,88,87,85,84,83,80,79,78,76,75,74,73,72}'::integer[])))