QUERY PLAN
Sort (cost=61.43..61.46 rows=10 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..61.27 rows=10 width=26)
Filter: (contract_id = ANY ('{4075,4071,4068,4065,4064,4055,4054,4050,4049,4061}'::integer[]))