QUERY PLAN
Sort (cost=77.57..77.60 rows=13 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..77.33 rows=13 width=26)
Filter: (contract_id = ANY ('{4486,4493,4494,4495,4480,4433,4248,4453,4467,4476,4479,4478}'::integer[]))