QUERY PLAN
Sort (cost=72.23..72.27 rows=13 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..71.99 rows=13 width=26)
Filter: (contract_id = ANY ('{4422,4430,4424,4426,4444,4433,4408,4393,4396,4414}'::integer[]))