QUERY PLAN
Update on tbl_tasks (cost=0.00..43.19 rows=1 width=147)
-> Seq Scan on tbl_tasks (cost=0.00..43.19 rows=1 width=147)
Filter: ((task_group_id = 194) AND (status = 0) AND (head_of <> ALL ('{1001,5329,5420,5087,5300}'::integer[])))