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