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,3916,4248,4235,4257,4291,4285,4324,4323,4373,4055,4112,4106,4144,4016,3935,3997,3967,4388,4399}'::integer[]))