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 = 1000) AND (id <> ALL ('{186984,186849,186848,186845,186844,186814,185549,184078,183911,183161}'::integer[])))