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 ('{2637,3316,3368,3364,3470,3661,3703,3738,4016}'::integer[]))