QUERY PLAN
Hash Join (cost=3.68..7.83 rows=1 width=67)
Hash Cond: (t.id = r.erp_sales_outbound_id)
-> Seq Scan on tbl_erp_sales_outbounds t (cost=0.00..3.92 rows=60 width=4)
Filter: (status = ANY ('{2,5,1}'::integer[]))
-> Hash (cost=3.66..3.66 rows=1 width=67)
-> Seq Scan on tbl_erp_sales_outbound_products r (cost=0.00..3.66 rows=1 width=67)
Filter: (erp_sales_order_product_id = 1979)