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 = 1011) AND (id <> ALL ('{186948,186940,186939,186938,186937,186936,186935,186934,186933,186932}'::integer[])))