QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..20.48 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..20.48 rows=10 width=6)
Filter: ((user_id = 1001) AND (id <> ALL ('{207860,207859,207858,207850,207857,207856,207855,207854,207853,207852}'::integer[])))