QUERY PLAN
GroupAggregate (cost=79.58..79.87 rows=15 width=12)
Group Key: parent_id
-> Sort (cost=79.58..79.63 rows=19 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..79.17 rows=19 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1535,1667,1822,233,81,347,346,850,796,1537,1536,1550,1664,1662,1658,1661,1660,1666,1729,1672}'::integer[])))