QUERY PLAN
Sort (cost=93.84..93.90 rows=23 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..93.32 rows=23 width=26)
Filter: (contract_id = ANY ('{4417,4422,4430,4390,4364,4426,4386,4433,4408,4373,4377,4360,4393,4366,4385,4394,4396,4414}'::integer[]))