QUERY PLAN
Sort (cost=59.99..60.00 rows=6 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..59.91 rows=6 width=26)
Filter: (contract_id = ANY ('{4496,4497,4486,4491,4492,4324}'::integer[]))