QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..19.15 rows=10 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..19.15 rows=10 width=6)
Filter: ((user_id = 1001) AND (id <> ALL ('{183151,183109,182987,182758,180754,182249,182361,182316,182305,182262}'::integer[])))