QUERY PLAN
Sort (cost=64.09..64.11 rows=7 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..63.99 rows=7 width=26)
Filter: (contract_id = ANY ('{4486,4480,4484,4467,4476,4479,4478}'::integer[]))