QUERY PLAN
Sort (cost=65.21..65.23 rows=10 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..65.04 rows=10 width=26)
Filter: (contract_id = ANY ('{4497,4424,4390,4426,4377,4393,4396,4450}'::integer[]))