QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..20.23 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..20.23 rows=10 width=6)
Filter: ((user_id = 1004) AND (id <> ALL ('{183832,183828,183829,183821,183592,183591,183590,183589,183588,183587}'::integer[])))