QUERY PLAN
Sort (cost=59.80..59.82 rows=9 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..59.65 rows=9 width=26)
Filter: (contract_id = ANY ('{3364,3746,3967,3978,1558,4106,4131,4112,4140}'::integer[]))