QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..19.43 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..19.43 rows=10 width=6)
Filter: ((user_id = 5016) AND (id <> ALL ('{170089,169952,170003,170002,169924,169991,169973,169926,169936,169925}'::integer[])))