QUERY PLAN
GroupAggregate (cost=177.43..177.67 rows=9 width=12)
Group Key: parent_id
-> Sort (cost=177.43..177.48 rows=20 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..177.00 rows=20 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1618,1617,1616,1615,1614,1613,1611,1609,1603,1600,1598,1595,1592,1591,1586,1585,1584,1583,1582,1575}'::integer[])))