QUERY PLAN
Sort (cost=99.12..99.17 rows=21 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..98.66 rows=21 width=29)
Filter: (contract_id = ANY ('{4486,4484,4480,4479,4478,4476,4467,4462,4457,4453,4481,4450,4443,4446,4444,4430,4426,4433,4424,4422}'::integer[]))