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