QUERY PLAN
Sort (cost=64.50..64.53 rows=11 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..64.31 rows=11 width=26)
Filter: (contract_id = ANY ('{4112,4106,4235,4144,3763,3755,3935,3978,3997,3916}'::integer[]))