| GroupAggregate (cost=136.82..137.30 rows=26 width=12) |
| Group Key: remain_task.task_group_id |
| -> Sort (cost=136.82..136.89 rows=30 width=4) |
| Sort Key: remain_task.task_group_id |
| -> Hash Anti Join (cost=59.12..136.08 rows=30 width=4) |
| Hash Cond: (remain_task.id = child_task.parent_id) |
| -> Seq Scan on tbl_tasks remain_task (cost=0.00..76.31 rows=31 width=8) |
| Filter: ((status <> 1) AND (task_group_id = ANY ('{71,54,53,52,50,49,48,47,45,44,42,41,40,38,35,33,30,22,19}'::integer[]))) |
| -> Hash (cost=43.50..43.50 rows=1250 width=4) |
| -> Seq Scan on tbl_tasks child_task (cost=0.00..43.50 rows=1250 width=4) |