QUERY PLAN
Delete on tbl_visit_object_histories (cost=0.00..1.25 rows=2 width=6)
-> Seq Scan on tbl_visit_object_histories (cost=0.00..1.25 rows=2 width=6)
Filter: ((user_id = 5495) AND (id <> ALL ('{13,12,11,1,8,5,4,2}'::integer[])))