QUERY PLAN
Update on tbl_tasks (cost=0.00..56.00 rows=2 width=197)
-> Seq Scan on tbl_tasks (cost=0.00..56.00 rows=2 width=197)
Filter: ((task_group_id = 106) AND (status = 0) AND (head_of <> ALL ('{1000,5064,5250,5461}'::integer[])))