QUERY PLAN
Aggregate (cost=8.30..8.31 rows=1 width=8)
-> Index Scan using tbl_purchase_contracts_pkey on tbl_purchase_contracts (cost=0.28..8.30 rows=1 width=0)
Index Cond: (id = 4080)
Filter: ((erp_un_settle_amount > '0'::numeric) AND (cost_type = 2) AND (supplier_id = 431))