QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..19.45 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..19.45 rows=10 width=6)
Filter: ((user_id = 1001) AND (id <> ALL ('{170086,170085,170084,170083,170082,170081,170080,170079,170078,170077}'::integer[])))