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 = 5016) AND (id <> ALL ('{186851,186806,185643,185641,185552,185551,185527,185467,184837,184680}'::integer[])))