QUERY PLAN
Sort (cost=13.01..13.02 rows=1 width=118)
Sort Key: id
-> Seq Scan on tbl_purchase_contract_invoices (cost=0.00..13.00 rows=1 width=118)
Filter: (contract_id = 1)