QUERY PLAN
Update on tbl_tasks (cost=0.00..40.93 rows=1 width=147)
-> Seq Scan on tbl_tasks (cost=0.00..40.93 rows=1 width=147)
Filter: ((task_group_id = 192) AND (status = 0) AND (head_of <> ALL ('{1000,1017,5250}'::integer[])))