QUERY PLAN
GroupAggregate (cost=73.05..73.31 rows=11 width=12)
Group Key: parent_id
-> Sort (cost=73.05..73.10 rows=20 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..72.62 rows=20 width=4)
Filter: (parent_id = ANY ('{9,17,23,10,34,12,11,52,15,58,62,57,63,61,54,48,74,76,75,71}'::integer[]))