QUERY PLAN
Sort (cost=77.67..77.71 rows=17 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..77.33 rows=17 width=26)
Filter: (contract_id = ANY ('{229,85,24,2,17,84,132,6,108,18,311,479}'::integer[]))