QUERY PLAN
Sort (cost=55.72..55.73 rows=1 width=34)
Sort Key: id
-> Seq Scan on tbl_purchase_contract_invoices (cost=0.00..55.71 rows=1 width=34)
Filter: (contract_id = 4080)