QUERY PLAN
Sort (cost=66.85..66.88 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..66.66 rows=11 width=26)
Filter: (contract_id = ANY ('{4424,4390,4426,4377,4393,4366,4396,4450}'::integer[]))