QUERY PLAN
Sort (cost=71.06..71.06 rows=1 width=34)
Sort Key: id
-> Seq Scan on tbl_purchase_contract_invoices (cost=0.00..71.05 rows=1 width=34)
Filter: (contract_id = 3834)