QUERY PLAN
Sort (cost=80.42..80.48 rows=21 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..79.96 rows=21 width=26)
Filter: (contract_id = ANY ('{4055,3763,3755,3725,3746,3803,3857,3935,3916,3900,3967,3978,3997,4088,4091,4095,4094,4098}'::integer[]))