QUERY PLAN
Update on tbl_tasks (cost=0.00..157.50 rows=1 width=242)
-> Seq Scan on tbl_tasks (cost=0.00..157.50 rows=1 width=242)
Filter: ((task_group_id = 214) AND (status = 0) AND (head_of <> ALL ('{1001,1000,5250,5016,5064}'::integer[])))