QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..24.00 rows=12 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..24.00 rows=12 width=6)
Filter: ((user_id = 1001) AND (id <> ALL ('{186855,186854,186853,186852,186850,186847,186846,186843,186842,186838}'::integer[])))