QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..20.20 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..20.20 rows=10 width=6)
Filter: ((user_id = 5064) AND (id <> ALL ('{187008,186986,186870,186841,186840,186339,186338,186786,186784,186785}'::integer[])))