QUERY PLAN
Sort (cost=12.63..12.64 rows=1 width=86)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..12.62 rows=1 width=86)
Filter: (contract_id = 8)