QUERY PLAN
Delete on tbl_erp_inventory_product_spents (cost=0.00..12.62 rows=1 width=6)
-> Seq Scan on tbl_erp_inventory_product_spents (cost=0.00..12.62 rows=1 width=6)
Filter: (erp_inventory_lost_id = 1)