QUERY PLAN
Sort (cost=99.27..99.33 rows=26 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..98.66 rows=26 width=26)
Filter: (contract_id = ANY ('{4349,4291,4285,3598,4312,4373,4016,4223,3502,3525,3537,3549,3550,3493,3620,3661,3597,3703,3738,4338}'::integer[]))