QUERY PLAN
Sort (cost=45.09..45.09 rows=3 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..45.06 rows=3 width=29)
Filter: (contract_id = 1186)