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 ('{4484,4480,4479,4478,4476,4467,4462,4457,4453,4481,4446,4433,4399,4388,4373,4349,4291,4285,4257,4248}'::integer[]))