QUERY PLAN
Sort (cost=63.02..63.03 rows=7 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..62.92 rows=7 width=26)
Filter: (contract_id = ANY ('{1186,3108,3830,3842,3803}'::integer[]))