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