QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..17.18 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..17.18 rows=10 width=6)
Filter: ((user_id = 1000) AND (id <> ALL ('{207258,207469,207398,207340,207317,207319,207318}'::integer[])))