QUERY PLAN
Sort (cost=99.18..99.23 rows=23 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..98.66 rows=23 width=26)
Filter: (contract_id = ANY ('{4480,4481,4484,4424,4444,4433,4408,4393,4396,4400,4443,4450,4446,4453,4467,4476,4462,4479,4478,4457}'::integer[]))