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