QUERY PLAN
Sort (cost=62.98..62.99 rows=5 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..62.92 rows=5 width=26)
Filter: (contract_id = ANY ('{3550,3703,3841,3840,3843}'::integer[]))