QUERY PLAN
Sort (cost=80.31..80.35 rows=16 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..79.99 rows=16 width=26)
Filter: (contract_id = ANY ('{4417,4390,4359,4386,4373,4377,4360,4366,4385,4394,4400,4388,4399}'::integer[]))