QUERY PLAN
Sort (cost=77.57..77.60 rows=13 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..77.33 rows=13 width=29)
Filter: (contract_id = ANY ('{4483,2909,2261,2326,2327,1012,2182,2566,2565,2627,2626,2564}'::integer[]))