QUERY PLAN
Sort (cost=72.18..72.21 rows=11 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..71.99 rows=11 width=29)
Filter: (contract_id = ANY ('{4483,4480,4479,4478,4476,4467,4462,4457,4455,4453}'::integer[]))