QUERY PLAN
Sort (cost=62.28..62.32 rows=15 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..61.98 rows=15 width=26)
Filter: (contract_id = ANY ('{4112,4131,4106,4055,3997,3978,3967,3935,3916,3900}'::integer[]))