QUERY PLAN
GroupAggregate (cost=176.94..177.17 rows=8 width=12)
Group Key: parent_id
-> Sort (cost=176.94..176.99 rows=21 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..176.47 rows=21 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1603,1600,1598,1595,1592,1591,1586,1585,1584,1583,1582,1575,1568,1567,1566,1564,1563,1562,1561,1560}'::integer[])))