QUERY PLAN
Sort (cost=62.18..62.20 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..61.98 rows=11 width=26)
Filter: (contract_id = ANY ('{4140,4144,4139,4138,4137,4136,4135,4130,4129,4120}'::integer[]))