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