QUERY PLAN
Sort (cost=96.28..96.33 rows=21 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..95.82 rows=21 width=26)
Filter: (contract_id = ANY ('{4493,4494,4495,4481,4480,4433,4324,4323,4373,4144,4446,4467,4476,4462,4479,4457,4478,4486,4453,4399}'::integer[]))