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 ('{4493,4494,4495,4480,4481,4433,4324,4323,4373,4055,4144,4446,4453,4399,4467,4476,4462,4479,4457,4478}'::integer[]))