QUERY PLAN
HashAggregate (cost=76.28..76.48 rows=20 width=12)
Group Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..76.10 rows=36 width=4)
Filter: (parent_id = ANY ('{1535,1547,1546,1543,1548,1544,1549,1565,1596,1686,1647,1672,1669,1668,1667,1662,1661,1580,1578,1577}'::integer[]))