QUERY PLAN
Sort (cost=89.05..89.12 rows=28 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..88.38 rows=28 width=29)
Filter: (contract_id = ANY ('{4253,4252,4235,4144,4112,4106,4055,3997,3978,3967,3935,3916,3900,3857,3803,3763,3755,3746,3725,3724}'::integer[]))