QUERY PLAN
Delete on tbl_erp_sales_order_products (cost=0.00..71.34 rows=2 width=6)
-> Seq Scan on tbl_erp_sales_order_products (cost=0.00..71.34 rows=2 width=6)
Filter: ((erp_sales_order_id = 1711) AND (id <> ALL ('{2260,2261,2262,2263,2264,2265}'::integer[])))